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 #include "content/renderer/mock_content_renderer_client.h" | 5 #include "content/renderer/mock_content_renderer_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include "v8/include/v8.h" | 8 #include "v8/include/v8.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 const GURL& url, | 83 const GURL& url, |
84 GURL* new_url) { | 84 GURL* new_url) { |
85 return false; | 85 return false; |
86 } | 86 } |
87 | 87 |
88 bool MockContentRendererClient::ShouldPumpEventsDuringCookieMessage() { | 88 bool MockContentRendererClient::ShouldPumpEventsDuringCookieMessage() { |
89 return false; | 89 return false; |
90 } | 90 } |
91 | 91 |
92 void MockContentRendererClient::DidCreateScriptContext( | 92 void MockContentRendererClient::DidCreateScriptContext( |
93 WebKit::WebFrame* frame, v8::Handle<v8::Context> context, int world_id) { | 93 WebKit::WebFrame* frame, v8::Handle<v8::Context> context, |
| 94 int extension_group, int world_id) { |
94 } | 95 } |
95 | 96 |
96 void MockContentRendererClient::WillReleaseScriptContext( | 97 void MockContentRendererClient::WillReleaseScriptContext( |
97 WebKit::WebFrame* frame, v8::Handle<v8::Context> context, int world_id) { | 98 WebKit::WebFrame* frame, v8::Handle<v8::Context> context, int world_id) { |
98 } | 99 } |
99 | 100 |
100 unsigned long long MockContentRendererClient::VisitedLinkHash( | 101 unsigned long long MockContentRendererClient::VisitedLinkHash( |
101 const char* canonical_url, size_t length) { | 102 const char* canonical_url, size_t length) { |
102 return 0LL; | 103 return 0LL; |
103 } | 104 } |
(...skipping 30 matching lines...) Expand all Loading... |
134 | 135 |
135 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( | 136 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( |
136 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 137 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
137 } | 138 } |
138 | 139 |
139 bool MockContentRendererClient::AllowSocketAPI(const GURL& url) { | 140 bool MockContentRendererClient::AllowSocketAPI(const GURL& url) { |
140 return false; | 141 return false; |
141 } | 142 } |
142 | 143 |
143 } // namespace content | 144 } // namespace content |
OLD | NEW |