OLD | NEW |
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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "content/renderer/content_renderer_client.h" | 13 #include "content/renderer/content_renderer_client.h" |
12 | 14 |
13 class ChromeRenderProcessObserver; | 15 class ChromeRenderProcessObserver; |
14 class ExtensionDispatcher; | 16 class ExtensionDispatcher; |
15 class RendererHistogramSnapshots; | 17 class RendererHistogramSnapshots; |
16 class RendererNetPredictor; | 18 class RendererNetPredictor; |
17 class SpellCheck; | 19 class SpellCheck; |
18 class SpellCheckProvider; | 20 class SpellCheckProvider; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void DidCreateIsolatedScriptContext( | 68 virtual void DidCreateIsolatedScriptContext( |
67 WebKit::WebFrame* frame, int world_id, | 69 WebKit::WebFrame* frame, int world_id, |
68 v8::Handle<v8::Context> context) OVERRIDE; | 70 v8::Handle<v8::Context> context) OVERRIDE; |
69 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 71 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
70 size_t length) OVERRIDE; | 72 size_t length) OVERRIDE; |
71 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 73 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
72 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 74 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
73 virtual bool ShouldOverridePageVisibilityState( | 75 virtual bool ShouldOverridePageVisibilityState( |
74 const RenderView* render_view, | 76 const RenderView* render_view, |
75 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; | 77 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; |
| 78 virtual bool HandleGetCookieRequest(RenderView* sender, |
| 79 const GURL& url, |
| 80 const GURL& first_party_for_cookies, |
| 81 std::string* cookies) OVERRIDE; |
| 82 virtual bool HandleSetCookieRequest(RenderView* sender, |
| 83 const GURL& url, |
| 84 const GURL& first_party_for_cookies, |
| 85 const std::string& value) OVERRIDE; |
76 | 86 |
77 // For testing. | 87 // For testing. |
78 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); | 88 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); |
79 | 89 |
80 // Called in low-memory conditions to dump the memory used by the spellchecker | 90 // Called in low-memory conditions to dump the memory used by the spellchecker |
81 // and start over. | 91 // and start over. |
82 void OnPurgeMemory(); | 92 void OnPurgeMemory(); |
83 | 93 |
84 private: | 94 private: |
85 WebKit::WebPlugin* CreatePluginImpl( | 95 WebKit::WebPlugin* CreatePluginImpl( |
(...skipping 26 matching lines...) Expand all Loading... |
112 // The SpellCheckProvider is a RenderViewObserver, and handles its own | 122 // The SpellCheckProvider is a RenderViewObserver, and handles its own |
113 // destruction. | 123 // destruction. |
114 SpellCheckProvider* spellcheck_provider_; | 124 SpellCheckProvider* spellcheck_provider_; |
115 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 125 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
116 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 126 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
117 }; | 127 }; |
118 | 128 |
119 } // namespace chrome | 129 } // namespace chrome |
120 | 130 |
121 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 131 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |