OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 // Allows an embedder to provide a blink::WebAppBannerClient. | 291 // Allows an embedder to provide a blink::WebAppBannerClient. |
292 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( | 292 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( |
293 RenderFrame* render_frame); | 293 RenderFrame* render_frame); |
294 | 294 |
295 // Gives the embedder a chance to add properties to the context menu. | 295 // Gives the embedder a chance to add properties to the context menu. |
296 // Currently only called when the context menu is for an image. | 296 // Currently only called when the context menu is for an image. |
297 virtual void AddImageContextMenuProperties( | 297 virtual void AddImageContextMenuProperties( |
298 const blink::WebURLResponse& response, | 298 const blink::WebURLResponse& response, |
299 std::map<std::string, std::string>* properties) {} | 299 std::map<std::string, std::string>* properties) {} |
| 300 |
| 301 // Notifies that a service worker context has been created. This function |
| 302 // is called from the worker thread. |
| 303 virtual void DidInitializeServiceWorkerContextOnWorkerThread( |
| 304 v8::Local<v8::Context> context, |
| 305 const GURL& url) {} |
300 }; | 306 }; |
301 | 307 |
302 } // namespace content | 308 } // namespace content |
303 | 309 |
304 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 310 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |