| 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/browser/mock_content_browser_client.h" | 5 #include "content/browser/mock_content_browser_client.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "content/browser/webui/empty_web_ui_factory.h" | 9 #include "content/browser/webui/empty_web_ui_factory.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 ui::Clipboard* MockContentBrowserClient::GetClipboard() { | 177 ui::Clipboard* MockContentBrowserClient::GetClipboard() { |
| 178 static ui::Clipboard clipboard; | 178 static ui::Clipboard clipboard; |
| 179 return &clipboard; | 179 return &clipboard; |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool MockContentBrowserClient::IsFastShutdownPossible() { | 182 bool MockContentBrowserClient::IsFastShutdownPossible() { |
| 183 return true; | 183 return true; |
| 184 } | 184 } |
| 185 | 185 |
| 186 void MockContentBrowserClient::RegisterDevToolsRemoteListeners( |
| 187 DevToolsProtocolHandler* proto_handler) { |
| 188 } |
| 189 |
| 190 void MockContentBrowserClient::GetAdditionalStartPagesForDevTools( |
| 191 TabContents* dev_tools_tab, ListValue* results) { |
| 192 } |
| 193 |
| 186 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 194 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 187 int MockContentBrowserClient::GetCrashSignalFD( | 195 int MockContentBrowserClient::GetCrashSignalFD( |
| 188 const std::string& process_type) { | 196 const std::string& process_type) { |
| 189 return -1; | 197 return -1; |
| 190 } | 198 } |
| 191 #endif | 199 #endif |
| 192 | 200 |
| 193 #if defined(USE_NSS) | 201 #if defined(USE_NSS) |
| 194 crypto::CryptoModuleBlockingPasswordDelegate* | 202 crypto::CryptoModuleBlockingPasswordDelegate* |
| 195 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 203 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 196 return NULL; | 204 return NULL; |
| 197 } | 205 } |
| 198 #endif | 206 #endif |
| 199 | 207 |
| 200 } // namespace content | 208 } // namespace content |
| OLD | NEW |