Chromium Code Reviews| 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/Platform/chromium/public/WebPreconnectMotiva tion.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 int world_id) {} | 207 int world_id) {} |
| 207 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, | 208 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, |
| 208 v8::Handle<v8::Context>, | 209 v8::Handle<v8::Context>, |
| 209 int world_id) {} | 210 int world_id) {} |
| 210 | 211 |
| 211 // See WebKit::Platform. | 212 // See WebKit::Platform. |
| 212 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 213 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
| 213 size_t length); | 214 size_t length); |
| 214 virtual bool IsLinkVisited(unsigned long long link_hash); | 215 virtual bool IsLinkVisited(unsigned long long link_hash); |
| 215 virtual void PrefetchHostName(const char* hostname, size_t length) {} | 216 virtual void PrefetchHostName(const char* hostname, size_t length) {} |
| 217 virtual void Preconnect(const GURL& url, | |
| 218 WebKit::WebPreconnectMotivation motivation, | |
| 219 uint32_t motivationVariationId) {} | |
|
jam
2013/05/07 16:22:36
are changes to this file leftover?
kouhei (in TOK)
2013/05/07 16:30:47
Yes. This needs to be removed.
Thank you for point
| |
| 216 virtual bool ShouldOverridePageVisibilityState( | 220 virtual bool ShouldOverridePageVisibilityState( |
| 217 const RenderView* render_view, | 221 const RenderView* render_view, |
| 218 WebKit::WebPageVisibilityState* override_state) const; | 222 WebKit::WebPageVisibilityState* override_state) const; |
| 219 | 223 |
| 220 // Return true if the GetCookie request will be handled by the embedder. | 224 // Return true if the GetCookie request will be handled by the embedder. |
| 221 // Cookies are returned in the cookie parameter. | 225 // Cookies are returned in the cookie parameter. |
| 222 virtual bool HandleGetCookieRequest(RenderView* sender, | 226 virtual bool HandleGetCookieRequest(RenderView* sender, |
| 223 const GURL& url, | 227 const GURL& url, |
| 224 const GURL& first_party_for_cookies, | 228 const GURL& first_party_for_cookies, |
| 225 std::string* cookies); | 229 std::string* cookies); |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 250 int render_view_id, | 254 int render_view_id, |
| 251 SynchronousCompositor* compositor) {} | 255 SynchronousCompositor* compositor) {} |
| 252 | 256 |
| 253 // Allow the embedder to disable input event filtering by the compositor. | 257 // Allow the embedder to disable input event filtering by the compositor. |
| 254 virtual bool ShouldCreateCompositorInputHandler() const; | 258 virtual bool ShouldCreateCompositorInputHandler() const; |
| 255 }; | 259 }; |
| 256 | 260 |
| 257 } // namespace content | 261 } // namespace content |
| 258 | 262 |
| 259 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 263 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |