Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.h

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 class ServiceWorkerGlobalScopeClientImpl final 45 class ServiceWorkerGlobalScopeClientImpl final
46 : public GarbageCollectedFinalized<ServiceWorkerGlobalScopeClientImpl>, 46 : public GarbageCollectedFinalized<ServiceWorkerGlobalScopeClientImpl>,
47 public ServiceWorkerGlobalScopeClient { 47 public ServiceWorkerGlobalScopeClient {
48 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerGlobalScopeClientImpl); 48 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerGlobalScopeClientImpl);
49 49
50 public: 50 public:
51 static ServiceWorkerGlobalScopeClient* create(WebServiceWorkerContextClient&); 51 static ServiceWorkerGlobalScopeClient* create(WebServiceWorkerContextClient&);
52 ~ServiceWorkerGlobalScopeClientImpl() override; 52 ~ServiceWorkerGlobalScopeClientImpl() override;
53 53
54 void getClient(const WebString&, WebServiceWorkerClientCallbacks*) override; 54 void getClient(const WebString&,
55 std::unique_ptr<WebServiceWorkerClientCallbacks>) override;
55 void getClients(const WebServiceWorkerClientQueryOptions&, 56 void getClients(const WebServiceWorkerClientQueryOptions&,
56 WebServiceWorkerClientsCallbacks*) override; 57 std::unique_ptr<WebServiceWorkerClientsCallbacks>) override;
57 void openWindow(const WebURL&, WebServiceWorkerClientCallbacks*) override; 58 void openWindow(const WebURL&,
59 std::unique_ptr<WebServiceWorkerClientCallbacks>) override;
58 void setCachedMetadata(const WebURL&, const char*, size_t) override; 60 void setCachedMetadata(const WebURL&, const char*, size_t) override;
59 void clearCachedMetadata(const WebURL&) override; 61 void clearCachedMetadata(const WebURL&) override;
60 62
61 WebURL scope() const override; 63 WebURL scope() const override;
62 64
63 void didHandleActivateEvent(int eventID, 65 void didHandleActivateEvent(int eventID,
64 WebServiceWorkerEventResult, 66 WebServiceWorkerEventResult,
65 double eventDispatchTime) override; 67 double eventDispatchTime) override;
66 void didHandleExtendableMessageEvent(int eventID, 68 void didHandleExtendableMessageEvent(int eventID,
67 WebServiceWorkerEventResult, 69 WebServiceWorkerEventResult,
(...skipping 21 matching lines...) Expand all
89 WebServiceWorkerEventResult, 91 WebServiceWorkerEventResult,
90 double eventDispatchTime) override; 92 double eventDispatchTime) override;
91 void postMessageToClient( 93 void postMessageToClient(
92 const WebString& clientUUID, 94 const WebString& clientUUID,
93 const WebString& message, 95 const WebString& message,
94 std::unique_ptr<WebMessagePortChannelArray>) override; 96 std::unique_ptr<WebMessagePortChannelArray>) override;
95 void postMessageToCrossOriginClient( 97 void postMessageToCrossOriginClient(
96 const WebCrossOriginServiceWorkerClient&, 98 const WebCrossOriginServiceWorkerClient&,
97 const WebString& message, 99 const WebString& message,
98 std::unique_ptr<WebMessagePortChannelArray>) override; 100 std::unique_ptr<WebMessagePortChannelArray>) override;
99 void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) override; 101 void skipWaiting(
100 void claim(WebServiceWorkerClientsClaimCallbacks*) override; 102 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override;
103 void claim(std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) override;
101 void focus(const WebString& clientUUID, 104 void focus(const WebString& clientUUID,
102 WebServiceWorkerClientCallbacks*) override; 105 std::unique_ptr<WebServiceWorkerClientCallbacks>) override;
103 void navigate(const WebString& clientUUID, 106 void navigate(const WebString& clientUUID,
104 const WebURL&, 107 const WebURL&,
105 WebServiceWorkerClientCallbacks*) override; 108 std::unique_ptr<WebServiceWorkerClientCallbacks>) override;
106 void registerForeignFetchScopes(const WebVector<WebURL>& subScopes, 109 void registerForeignFetchScopes(const WebVector<WebURL>& subScopes,
107 const WebVector<WebSecurityOrigin>&) override; 110 const WebVector<WebSecurityOrigin>&) override;
108 111
109 DEFINE_INLINE_VIRTUAL_TRACE() { 112 DEFINE_INLINE_VIRTUAL_TRACE() {
110 ServiceWorkerGlobalScopeClient::trace(visitor); 113 ServiceWorkerGlobalScopeClient::trace(visitor);
111 } 114 }
112 115
113 private: 116 private:
114 explicit ServiceWorkerGlobalScopeClientImpl(WebServiceWorkerContextClient&); 117 explicit ServiceWorkerGlobalScopeClientImpl(WebServiceWorkerContextClient&);
115 118
116 WebServiceWorkerContextClient& m_client; 119 WebServiceWorkerContextClient& m_client;
117 }; 120 };
118 121
119 } // namespace blink 122 } // namespace blink
120 123
121 #endif // ServiceWorkerGlobalScopeClientImpl_h 124 #endif // ServiceWorkerGlobalScopeClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698