| 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_browser_context.h" | 5 #include "content/shell/shell_browser_context.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/shell/shell_download_manager_delegate.h" | 15 #include "content/shell/shell_download_manager_delegate.h" |
| 16 #include "content/shell/shell_resource_context.h" | 16 #include "content/shell/shell_resource_context.h" |
| 17 #include "content/shell/shell_switches.h" | 17 #include "content/shell/shell_switches.h" |
| 18 #include "content/shell/shell_url_request_context_getter.h" | 18 #include "content/shell/shell_url_request_context_getter.h" |
| 19 | 19 |
| 20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
| 21 #include "base/base_paths_win.h" | 21 #include "base/base_paths_win.h" |
| 22 #elif defined(OS_LINUX) | 22 #elif defined(OS_LINUX) |
| 23 #include "base/nix/xdg_util.h" | 23 #include "base/nix/xdg_util.h" |
| 24 #elif defined(OS_MACOSX) | 24 #elif defined(OS_MACOSX) |
| 25 #include "base/base_paths_mac.h" | 25 #include "base/base_paths_mac.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 using content::BrowserThread; | |
| 29 | |
| 30 namespace content { | 28 namespace content { |
| 31 | 29 |
| 32 ShellBrowserContext::ShellBrowserContext() { | 30 ShellBrowserContext::ShellBrowserContext() { |
| 33 InitWhileIOAllowed(); | 31 InitWhileIOAllowed(); |
| 34 } | 32 } |
| 35 | 33 |
| 36 ShellBrowserContext::~ShellBrowserContext() { | 34 ShellBrowserContext::~ShellBrowserContext() { |
| 37 if (resource_context_.get()) { | 35 if (resource_context_.get()) { |
| 38 BrowserThread::DeleteSoon( | 36 BrowserThread::DeleteSoon( |
| 39 BrowserThread::IO, FROM_HERE, resource_context_.release()); | 37 BrowserThread::IO, FROM_HERE, resource_context_.release()); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 122 |
| 125 bool ShellBrowserContext::DidLastSessionExitCleanly() { | 123 bool ShellBrowserContext::DidLastSessionExitCleanly() { |
| 126 return true; | 124 return true; |
| 127 } | 125 } |
| 128 | 126 |
| 129 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 127 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
| 130 return NULL; | 128 return NULL; |
| 131 } | 129 } |
| 132 | 130 |
| 133 } // namespace content | 131 } // namespace content |
| OLD | NEW |