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_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 v8::Handle<v8::Context> context, | 59 v8::Handle<v8::Context> context, |
60 int extension_group, | 60 int extension_group, |
61 int world_id) OVERRIDE; | 61 int world_id) OVERRIDE; |
62 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, | 62 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, |
63 v8::Handle<v8::Context> context, | 63 v8::Handle<v8::Context> context, |
64 int world_id) OVERRIDE; | 64 int world_id) OVERRIDE; |
65 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 65 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
66 size_t length) OVERRIDE; | 66 size_t length) OVERRIDE; |
67 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 67 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
68 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 68 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
| 69 virtual void NewLinkPrerender(int prerender_id, |
| 70 int render_view_route_id, |
| 71 const GURL& url, |
| 72 const content::Referrer& referrer, |
| 73 const gfx::Size& size) OVERRIDE; |
| 74 virtual void RemovedLinkPrerender(int prerender_id) OVERRIDE; |
| 75 virtual void UnloadedLinkPrerender(int prerender_id) OVERRIDE; |
69 virtual bool ShouldOverridePageVisibilityState( | 76 virtual bool ShouldOverridePageVisibilityState( |
70 const RenderView* render_view, | 77 const RenderView* render_view, |
71 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; | 78 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; |
72 virtual bool HandleGetCookieRequest(RenderView* sender, | 79 virtual bool HandleGetCookieRequest(RenderView* sender, |
73 const GURL& url, | 80 const GURL& url, |
74 const GURL& first_party_for_cookies, | 81 const GURL& first_party_for_cookies, |
75 std::string* cookies) OVERRIDE; | 82 std::string* cookies) OVERRIDE; |
76 virtual bool HandleSetCookieRequest(RenderView* sender, | 83 virtual bool HandleSetCookieRequest(RenderView* sender, |
77 const GURL& url, | 84 const GURL& url, |
78 const GURL& first_party_for_cookies, | 85 const GURL& first_party_for_cookies, |
79 const std::string& value) OVERRIDE; | 86 const std::string& value) OVERRIDE; |
80 virtual void RegisterPPAPIInterfaceFactories( | 87 virtual void RegisterPPAPIInterfaceFactories( |
81 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; | 88 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; |
82 | 89 |
83 private: | 90 private: |
84 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 91 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
85 }; | 92 }; |
86 | 93 |
87 } // namespace content | 94 } // namespace content |
88 | 95 |
89 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 96 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |