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

Side by Side Diff: content/renderer/content_renderer_client.h

Issue 7650027: Update Chromium to use new signature for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "content/common/content_client.h" 12 #include "content/common/content_client.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
14 14
15 class FilePath; 15 class FilePath;
16 class GURL; 16 class GURL;
17 class RenderView; 17 class RenderView;
18 class SkBitmap; 18 class SkBitmap;
19 19
20 namespace WebKit { 20 namespace WebKit {
21 class WebFrame; 21 class WebFrame;
22 class WebPlugin; 22 class WebPlugin;
23 class WebURLRequest; 23 class WebURLRequest;
24 struct WebPluginParams; 24 struct WebPluginParams;
25 struct WebURLError; 25 struct WebURLError;
26 } 26 }
27 27
28 namespace v8 {
29 class Context;
30 template<class T> class Handle;
31 }
32
28 namespace content { 33 namespace content {
29 34
30 // Embedder API for participating in renderer logic. 35 // Embedder API for participating in renderer logic.
31 class ContentRendererClient { 36 class ContentRendererClient {
32 public: 37 public:
33 virtual ~ContentRendererClient() {} 38 virtual ~ContentRendererClient() {}
34 39
35 // Notifies us that the RenderThread has been created. 40 // Notifies us that the RenderThread has been created.
36 virtual void RenderThreadStarted() = 0; 41 virtual void RenderThreadStarted() = 0;
37 42
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 const GURL& url, 88 const GURL& url,
84 GURL* new_url) = 0; 89 GURL* new_url) = 0;
85 90
86 // Whether to pump events when sending sync cookie messages. Needed if the 91 // Whether to pump events when sending sync cookie messages. Needed if the
87 // embedder can potentiall put up a modal dialog on the UI thread as a result. 92 // embedder can potentiall put up a modal dialog on the UI thread as a result.
88 virtual bool ShouldPumpEventsDuringCookieMessage() = 0; 93 virtual bool ShouldPumpEventsDuringCookieMessage() = 0;
89 94
90 // See the corresponding functions in WebKit::WebFrameClient. 95 // See the corresponding functions in WebKit::WebFrameClient.
91 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) = 0; 96 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) = 0;
92 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) = 0; 97 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) = 0;
93 virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* frame) = 0; 98 virtual void DidCreateIsolatedScriptContext(
99 WebKit::WebFrame* frame,
100 int world_id,
101 v8::Handle<v8::Context> context) = 0;
94 102
95 // See WebKit::WebKitClient. 103 // See WebKit::WebKitClient.
96 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 104 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
97 size_t length) = 0; 105 size_t length) = 0;
98 virtual bool IsLinkVisited(unsigned long long link_hash) = 0; 106 virtual bool IsLinkVisited(unsigned long long link_hash) = 0;
99 virtual void PrefetchHostName(const char* hostname, size_t length) = 0; 107 virtual void PrefetchHostName(const char* hostname, size_t length) = 0;
100 virtual bool ShouldOverridePageVisibilityState( 108 virtual bool ShouldOverridePageVisibilityState(
101 const RenderView* render_view, 109 const RenderView* render_view,
102 WebKit::WebPageVisibilityState* override_state) const = 0; 110 WebKit::WebPageVisibilityState* override_state) const = 0;
103 }; 111 };
104 112
105 } // namespace content 113 } // namespace content
106 114
107 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ 115 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698