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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
14 #include "content/public/common/page_transition_types.h" | 14 #include "content/public/common/page_transition_types.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h " | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h " |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPreconnectMotivati on.h" | |
18 #include "v8/include/v8.h" | 19 #include "v8/include/v8.h" |
19 | 20 |
20 class GURL; | 21 class GURL; |
21 class SkBitmap; | 22 class SkBitmap; |
22 | 23 |
23 namespace base { | 24 namespace base { |
24 class FilePath; | 25 class FilePath; |
25 class MessageLoop; | 26 class MessageLoop; |
26 } | 27 } |
27 | 28 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
198 int world_id) {} | 199 int world_id) {} |
199 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, | 200 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, |
200 v8::Handle<v8::Context>, | 201 v8::Handle<v8::Context>, |
201 int world_id) {} | 202 int world_id) {} |
202 | 203 |
203 // See WebKit::Platform. | 204 // See WebKit::Platform. |
204 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 205 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
205 size_t length); | 206 size_t length); |
206 virtual bool IsLinkVisited(unsigned long long link_hash); | 207 virtual bool IsLinkVisited(unsigned long long link_hash); |
207 virtual void PrefetchHostName(const char* hostname, size_t length) {} | 208 virtual void PrefetchHostName(const char* hostname, size_t length) {} |
209 virtual void Preconnect(const GURL& url, | |
210 WebKit::WebPreconnectMotivation motivation, | |
211 uint32_t motivationVariationId) {} | |
jam
2013/05/01 14:58:11
nit: google c++ naming style (i.e. motivation_vari
| |
208 virtual bool ShouldOverridePageVisibilityState( | 212 virtual bool ShouldOverridePageVisibilityState( |
209 const RenderView* render_view, | 213 const RenderView* render_view, |
210 WebKit::WebPageVisibilityState* override_state) const; | 214 WebKit::WebPageVisibilityState* override_state) const; |
211 | 215 |
212 // Return true if the GetCookie request will be handled by the embedder. | 216 // Return true if the GetCookie request will be handled by the embedder. |
213 // Cookies are returned in the cookie parameter. | 217 // Cookies are returned in the cookie parameter. |
214 virtual bool HandleGetCookieRequest(RenderView* sender, | 218 virtual bool HandleGetCookieRequest(RenderView* sender, |
215 const GURL& url, | 219 const GURL& url, |
216 const GURL& first_party_for_cookies, | 220 const GURL& first_party_for_cookies, |
217 std::string* cookies); | 221 std::string* cookies); |
(...skipping 16 matching lines...) Expand all Loading... | |
234 // RenderThreadImpl. If NULL, then a new thread will be created. | 238 // RenderThreadImpl. If NULL, then a new thread will be created. |
235 virtual base::MessageLoop* OverrideCompositorMessageLoop() const; | 239 virtual base::MessageLoop* OverrideCompositorMessageLoop() const; |
236 | 240 |
237 // Allow the embedder to disable input event filtering by the compositor. | 241 // Allow the embedder to disable input event filtering by the compositor. |
238 virtual bool ShouldCreateCompositorInputHandler() const; | 242 virtual bool ShouldCreateCompositorInputHandler() const; |
239 }; | 243 }; |
240 | 244 |
241 } // namespace content | 245 } // namespace content |
242 | 246 |
243 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 247 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |