| 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 #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 | 9 |
| 9 namespace content { | 10 namespace content { |
| 10 | 11 |
| 11 MockContentRendererClient::~MockContentRendererClient() { | 12 MockContentRendererClient::~MockContentRendererClient() { |
| 12 } | 13 } |
| 13 | 14 |
| 14 void MockContentRendererClient::RenderThreadStarted() { | 15 void MockContentRendererClient::RenderThreadStarted() { |
| 15 } | 16 } |
| 16 | 17 |
| 17 void MockContentRendererClient::RenderViewCreated(RenderView* render_view) { | 18 void MockContentRendererClient::RenderViewCreated(RenderView* render_view) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 74 |
| 74 void MockContentRendererClient::DidCreateScriptContext( | 75 void MockContentRendererClient::DidCreateScriptContext( |
| 75 WebKit::WebFrame* frame) { | 76 WebKit::WebFrame* frame) { |
| 76 } | 77 } |
| 77 | 78 |
| 78 void MockContentRendererClient::DidDestroyScriptContext( | 79 void MockContentRendererClient::DidDestroyScriptContext( |
| 79 WebKit::WebFrame* frame) { | 80 WebKit::WebFrame* frame) { |
| 80 } | 81 } |
| 81 | 82 |
| 82 void MockContentRendererClient::DidCreateIsolatedScriptContext( | 83 void MockContentRendererClient::DidCreateIsolatedScriptContext( |
| 83 WebKit::WebFrame* frame) { | 84 WebKit::WebFrame* frame, int world_id, v8::Handle<v8::Context> context) { |
| 84 } | 85 } |
| 85 | 86 |
| 86 unsigned long long MockContentRendererClient::VisitedLinkHash( | 87 unsigned long long MockContentRendererClient::VisitedLinkHash( |
| 87 const char* canonical_url, size_t length) { | 88 const char* canonical_url, size_t length) { |
| 88 return 0LL; | 89 return 0LL; |
| 89 } | 90 } |
| 90 | 91 |
| 91 bool MockContentRendererClient::IsLinkVisited(unsigned long long link_hash) { | 92 bool MockContentRendererClient::IsLinkVisited(unsigned long long link_hash) { |
| 92 return false; | 93 return false; |
| 93 } | 94 } |
| 94 | 95 |
| 95 void MockContentRendererClient::PrefetchHostName( | 96 void MockContentRendererClient::PrefetchHostName( |
| 96 const char* hostname, size_t length) { | 97 const char* hostname, size_t length) { |
| 97 } | 98 } |
| 98 | 99 |
| 99 bool MockContentRendererClient::ShouldOverridePageVisibilityState( | 100 bool MockContentRendererClient::ShouldOverridePageVisibilityState( |
| 100 const RenderView* render_view, | 101 const RenderView* render_view, |
| 101 WebKit::WebPageVisibilityState* override_state) const { | 102 WebKit::WebPageVisibilityState* override_state) const { |
| 102 return false; | 103 return false; |
| 103 } | 104 } |
| 104 | 105 |
| 105 } // namespace content | 106 } // namespace content |
| OLD | NEW |