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 CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual bool AllowPopup(const GURL& creator) OVERRIDE; | 36 virtual bool AllowPopup(const GURL& creator) OVERRIDE; |
37 virtual bool ShouldFork(WebKit::WebFrame* frame, | 37 virtual bool ShouldFork(WebKit::WebFrame* frame, |
38 const GURL& url, | 38 const GURL& url, |
39 bool is_content_initiated, | 39 bool is_content_initiated, |
40 bool is_initial_navigation, | 40 bool is_initial_navigation, |
41 bool* send_referrer) OVERRIDE; | 41 bool* send_referrer) OVERRIDE; |
42 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 42 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
43 const GURL& url, | 43 const GURL& url, |
44 GURL* new_url) OVERRIDE; | 44 GURL* new_url) OVERRIDE; |
45 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; | 45 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; |
46 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 46 virtual void DidCreateScriptContext(WebKit::WebFrame* frame, |
47 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 47 v8::Handle<v8::Context> context, |
48 virtual void DidCreateIsolatedScriptContext( | 48 int world_id) OVERRIDE; |
49 WebKit::WebFrame* frame, int world_id, | 49 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, |
50 v8::Handle<v8::Context> context) OVERRIDE; | 50 v8::Handle<v8::Context> context, |
| 51 int world_id) OVERRIDE; |
51 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 52 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
52 size_t length) OVERRIDE; | 53 size_t length) OVERRIDE; |
53 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 54 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
54 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 55 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
55 virtual bool ShouldOverridePageVisibilityState( | 56 virtual bool ShouldOverridePageVisibilityState( |
56 const RenderView* render_view, | 57 const RenderView* render_view, |
57 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; | 58 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; |
58 virtual bool HandleGetCookieRequest(RenderView* sender, | 59 virtual bool HandleGetCookieRequest(RenderView* sender, |
59 const GURL& url, | 60 const GURL& url, |
60 const GURL& first_party_for_cookies, | 61 const GURL& first_party_for_cookies, |
61 std::string* cookies) OVERRIDE; | 62 std::string* cookies) OVERRIDE; |
62 virtual bool HandleSetCookieRequest(RenderView* sender, | 63 virtual bool HandleSetCookieRequest(RenderView* sender, |
63 const GURL& url, | 64 const GURL& url, |
64 const GURL& first_party_for_cookies, | 65 const GURL& first_party_for_cookies, |
65 const std::string& value) OVERRIDE; | 66 const std::string& value) OVERRIDE; |
66 }; | 67 }; |
67 | 68 |
68 } // namespace content | 69 } // namespace content |
69 | 70 |
70 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ | 71 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |