Changeset 163992 in webkit


Ignore:
Timestamp:
Feb 12, 2014, 2:56:27 PM (12 years ago)
Author:
andersca@apple.com
Message:

Better iOS build fix.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::wrapCryptoKey):
(WebKit::WebPageProxy::unwrapCryptoKey):
Make these functions cross platform.

  • UIProcess/mac/WebPageProxyMac.mm:
Location:
trunk/Source/WebKit2
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r163986 r163992  
     12014-02-12  Anders Carlsson  <andersca@apple.com>
     2
     3        Better iOS build fix.
     4
     5        * UIProcess/WebPageProxy.cpp:
     6        (WebKit::WebPageProxy::wrapCryptoKey):
     7        (WebKit::WebPageProxy::unwrapCryptoKey):
     8        Make these functions cross platform.
     9
     10        * UIProcess/mac/WebPageProxyMac.mm:
     11
    1122014-02-12  Andy Estes  <aestes@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r163976 r163992  
    9595#include <WebCore/MIMETypeRegistry.h>
    9696#include <WebCore/RenderEmbeddedObject.h>
     97#include <WebCore/SerializedCryptoKeyWrap.h>
    9798#include <WebCore/TextCheckerClient.h>
    9899#include <WebCore/WindowFeatures.h>
     
    44804481}
    44814482
    4482 #if ENABLE(SUBTLE_CRYPTO) && !PLATFORM(COCOA)
     4483#if ENABLE(SUBTLE_CRYPTO)
    44834484void WebPageProxy::wrapCryptoKey(const Vector<uint8_t>& key, bool& succeeded, Vector<uint8_t>& wrappedKey)
    44844485{
    4485     notImplemented();
    4486     succeeded = false;
     4486    Vector<uint8_t> masterKey(16);
     4487    memset(masterKey.data(), 0, masterKey.size()); // FIXME: Not implemented yet, will be getting a key from client.
     4488    succeeded = wrapSerializedCryptoKey(masterKey, key, wrappedKey);
    44874489}
    44884490
    44894491void WebPageProxy::unwrapCryptoKey(const Vector<uint8_t>& wrappedKey, bool& succeeded, Vector<uint8_t>& key)
    44904492{
    4491     notImplemented();
    4492     succeeded = false;
     4493    Vector<uint8_t> masterKey(16);
     4494    memset(masterKey.data(), 0, masterKey.size()); // FIXME: Not implemented yet, will be getting a key from client.
     4495    succeeded = unwrapSerializedCryptoKey(masterKey, wrappedKey, key);
    44934496}
    44944497#endif
  • trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm

    r163986 r163992  
    4545#import <WebCore/GraphicsLayer.h>
    4646#import <WebCore/RuntimeApplicationChecks.h>
    47 #import <WebCore/SerializedCryptoKeyWrap.h>
    4847#import <WebCore/SharedBuffer.h>
    4948#import <WebCore/TextAlternativeWithRange.h>
  • trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

    r163986 r163992  
    919919                9FB5F394169E6A80002C25BF /* WKContextPrivateMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9FB5F392169E6A80002C25BF /* WKContextPrivateMac.mm */; };
    920920                9FB5F395169E6A80002C25BF /* WKContextPrivateMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 9FB5F393169E6A80002C25BF /* WKContextPrivateMac.h */; settings = {ATTRIBUTES = (Private, ); }; };
    921                 A1EB7D5018AC2B6400F178F5 /* WebPageProxyCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = A1EB7D4E18AC2B6400F178F5 /* WebPageProxyCocoa.mm */; };
    922921                A5EFD38C16B0E88C00B2F0E8 /* WKPageVisibilityTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = A5EFD38B16B0E88C00B2F0E8 /* WKPageVisibilityTypes.h */; settings = {ATTRIBUTES = (Private, ); }; };
    923922                A7D792D61767CB6E00881CBE /* ActivityAssertion.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7D792D51767CB6E00881CBE /* ActivityAssertion.cpp */; };
     
    26662665                9FB5F392169E6A80002C25BF /* WKContextPrivateMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKContextPrivateMac.mm; path = mac/WKContextPrivateMac.mm; sourceTree = "<group>"; };
    26672666                9FB5F393169E6A80002C25BF /* WKContextPrivateMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WKContextPrivateMac.h; path = mac/WKContextPrivateMac.h; sourceTree = "<group>"; };
    2668                 A1EB7D4E18AC2B6400F178F5 /* WebPageProxyCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebPageProxyCocoa.mm; sourceTree = "<group>"; };
    26692667                A1EDD2D91884ACE000BBFE98 /* All.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = All.xcconfig; sourceTree = "<group>"; };
    26702668                A1EDD2DB1884B96400BBFE98 /* PluginProcessShim.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = PluginProcessShim.xcconfig; sourceTree = "<group>"; };
     
    40364034                                1ABC3DF41899E437004F0626 /* NavigationState.h */,
    40374035                                1ABC3DF31899E437004F0626 /* NavigationState.mm */,
    4038                                 A1EB7D4E18AC2B6400F178F5 /* WebPageProxyCocoa.mm */,
    40394036                        );
    40404037                        path = Cocoa;
     
    78427839                                E19582D6153CC05400B60875 /* PDFKitImports.mm in Sources */,
    78437840                                2D870D1016234FFE000A3F20 /* PDFPlugin.mm in Sources */,
    7844                                 A1EB7D5018AC2B6400F178F5 /* WebPageProxyCocoa.mm in Sources */,
    78457841                                2D2ADF0B16362DDB00197E47 /* PDFPluginAnnotation.mm in Sources */,
    78467842                                2DA944A71884E94800ED86DB /* DownloadIOS.mm in Sources */,
Note: See TracChangeset for help on using the changeset viewer.