| 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/shell/shell_content_browser_client.h" | 5 #include "content/shell/shell_content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "content/public/browser/resource_dispatcher_host.h" | 9 #include "content/public/browser/resource_dispatcher_host.h" |
| 10 #include "content/shell/geolocation/shell_access_token_store.h" |
| 10 #include "content/shell/layout_test_controller_host.h" | 11 #include "content/shell/layout_test_controller_host.h" |
| 11 #include "content/shell/shell.h" | 12 #include "content/shell/shell.h" |
| 13 #include "content/shell/shell_browser_context.h" |
| 12 #include "content/shell/shell_browser_main_parts.h" | 14 #include "content/shell/shell_browser_main_parts.h" |
| 13 #include "content/shell/shell_devtools_delegate.h" | 15 #include "content/shell/shell_devtools_delegate.h" |
| 14 #include "content/shell/shell_resource_dispatcher_host_delegate.h" | 16 #include "content/shell/shell_resource_dispatcher_host_delegate.h" |
| 15 #include "content/shell/shell_switches.h" | 17 #include "content/shell/shell_switches.h" |
| 16 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 17 | 19 |
| 18 namespace content { | 20 namespace content { |
| 19 | 21 |
| 20 ShellContentBrowserClient::ShellContentBrowserClient() | 22 ShellContentBrowserClient::ShellContentBrowserClient() |
| 21 : shell_browser_main_parts_(NULL) { | 23 : shell_browser_main_parts_(NULL) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 51 } | 53 } |
| 52 | 54 |
| 53 std::string ShellContentBrowserClient::GetDefaultDownloadName() { | 55 std::string ShellContentBrowserClient::GetDefaultDownloadName() { |
| 54 return "download"; | 56 return "download"; |
| 55 } | 57 } |
| 56 | 58 |
| 57 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 59 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
| 58 return shell_browser_main_parts_->browser_context(); | 60 return shell_browser_main_parts_->browser_context(); |
| 59 } | 61 } |
| 60 | 62 |
| 63 AccessTokenStore* ShellContentBrowserClient::CreateAccessTokenStore() { |
| 64 return new ShellAccessTokenStore(browser_context()->GetRequestContext()); |
| 65 } |
| 66 |
| 61 } // namespace content | 67 } // namespace content |
| OLD | NEW |