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

Side by Side Diff: public/web/WebServiceWorkerContextClient.h

Issue 454103003: Cleanup namespace usage in public/web/Web[N-Z]*.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « public/web/WebSerializedScriptValue.h ('k') | public/web/WebServiceWorkerNetworkProvider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { } 95 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { }
96 96
97 // Called when the console message is reported. 97 // Called when the console message is reported.
98 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { } 98 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { }
99 99
100 // Inspector related messages. 100 // Inspector related messages.
101 virtual void dispatchDevToolsMessage(const WebString&) { } 101 virtual void dispatchDevToolsMessage(const WebString&) { }
102 virtual void saveDevToolsAgentState(const WebString&) { } 102 virtual void saveDevToolsAgentState(const WebString&) { }
103 103
104 // ServiceWorker specific method. 104 // ServiceWorker specific method.
105 virtual void didHandleActivateEvent(int eventID, blink::WebServiceWorkerEven tResult result) { } 105 virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult result) { }
106 106
107 // ServiceWorker specific method. Called after InstallEvent (dispatched 107 // ServiceWorker specific method. Called after InstallEvent (dispatched
108 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's 108 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's
109 // script context. 109 // script context.
110 virtual void didHandleInstallEvent(int installEventID, blink::WebServiceWork erEventResult result) { } 110 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result result) { }
111 111
112 // ServiceWorker specific methods. Called after FetchEvent is handled by the 112 // ServiceWorker specific methods. Called after FetchEvent is handled by the
113 // ServiceWorker's script context. When no response is provided, the browser 113 // ServiceWorker's script context. When no response is provided, the browser
114 // should fallback to native fetch. 114 // should fallback to native fetch.
115 virtual void didHandleFetchEvent(int fetchEventID) { } 115 virtual void didHandleFetchEvent(int fetchEventID) { }
116 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { } 116 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { }
117 117
118 // ServiceWorker specific method. Called after SyncEvent (dispatched via 118 // ServiceWorker specific method. Called after SyncEvent (dispatched via
119 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 119 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
120 // context. 120 // context.
121 virtual void didHandleSyncEvent(int syncEventID) { } 121 virtual void didHandleSyncEvent(int syncEventID) { }
122 122
123 // Ownership of the returned object is transferred to the caller. 123 // Ownership of the returned object is transferred to the caller.
124 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( blink::WebDataSource*) { return 0; } 124 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return 0; }
125 125
126 // Ownership of the passed callbacks is transferred to the callee, callee 126 // Ownership of the passed callbacks is transferred to the callee, callee
127 // should delete the callbacks after calling either onSuccess or onError. 127 // should delete the callbacks after calling either onSuccess or onError.
128 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are 128 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are
129 // passed to the WebServiceWorkerClientsCallbacks implementation. 129 // passed to the WebServiceWorkerClientsCallbacks implementation.
130 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO T_REACHED(); } 130 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO T_REACHED(); }
131 131
132 // Callee receives ownership of the passed vector. 132 // Callee receives ownership of the passed vector.
133 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3 133 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3
134 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } 134 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); }
135 }; 135 };
136 136
137 } // namespace blink 137 } // namespace blink
138 138
139 #endif // WebServiceWorkerContextClient_h 139 #endif // WebServiceWorkerContextClient_h
OLDNEW
« no previous file with comments | « public/web/WebSerializedScriptValue.h ('k') | public/web/WebServiceWorkerNetworkProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698