| 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/test/test_content_browser_client.h" | 5 #include "content/test/test_content_browser_client.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "content/test/test_web_contents_view.h" | 11 #include "content/test/test_web_contents_view.h" |
| 12 #include "googleurl/src/gurl.h" | |
| 13 | 12 |
| 14 namespace content { | 13 namespace content { |
| 15 | 14 |
| 16 TestContentBrowserClient::TestContentBrowserClient() { | 15 TestContentBrowserClient::TestContentBrowserClient() { |
| 17 } | 16 } |
| 18 | 17 |
| 19 TestContentBrowserClient::~TestContentBrowserClient() { | 18 TestContentBrowserClient::~TestContentBrowserClient() { |
| 20 } | 19 } |
| 21 | 20 |
| 22 WebContentsViewPort* TestContentBrowserClient::OverrideCreateWebContentsView( | 21 WebContentsViewPort* TestContentBrowserClient::OverrideCreateWebContentsView( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 33 | 32 |
| 34 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { | 33 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { |
| 35 if (!download_dir_.IsValid()) { | 34 if (!download_dir_.IsValid()) { |
| 36 bool result = download_dir_.CreateUniqueTempDir(); | 35 bool result = download_dir_.CreateUniqueTempDir(); |
| 37 CHECK(result); | 36 CHECK(result); |
| 38 } | 37 } |
| 39 return download_dir_.path(); | 38 return download_dir_.path(); |
| 40 } | 39 } |
| 41 | 40 |
| 42 } // namespace content | 41 } // namespace content |
| OLD | NEW |