Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 9982011: Mac content shell: Fix new browser window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | content/shell/shell_browser_main_parts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/environment.h" 8 #include "base/environment.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "content/public/browser/download_manager.h" 13 #include "content/public/browser/download_manager.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "content/public/browser/geolocation_permission_context.h" 15 #include "content/public/browser/geolocation_permission_context.h"
16 #include "content/public/browser/speech_recognition_preferences.h" 16 #include "content/public/browser/speech_recognition_preferences.h"
17 #include "content/shell/shell_browser_main_parts.h"
17 #include "content/shell/shell_download_manager_delegate.h" 18 #include "content/shell/shell_download_manager_delegate.h"
18 #include "content/shell/shell_resource_context.h" 19 #include "content/shell/shell_resource_context.h"
19 #include "content/shell/shell_url_request_context_getter.h" 20 #include "content/shell/shell_url_request_context_getter.h"
20 21
21 #if defined(OS_WIN) 22 #if defined(OS_WIN)
22 #include "base/base_paths_win.h" 23 #include "base/base_paths_win.h"
23 #elif defined(OS_LINUX) 24 #elif defined(OS_LINUX)
24 #include "base/nix/xdg_util.h" 25 #include "base/nix/xdg_util.h"
25 #elif defined(OS_MACOSX) 26 #elif defined(OS_MACOSX)
26 #include "base/base_paths_mac.h" 27 #include "base/base_paths_mac.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 77
77 virtual void SetFilterProfanities(bool filter_profanities) OVERRIDE { 78 virtual void SetFilterProfanities(bool filter_profanities) OVERRIDE {
78 } 79 }
79 80
80 private: 81 private:
81 DISALLOW_COPY_AND_ASSIGN(ShellSpeechRecognitionPreferences); 82 DISALLOW_COPY_AND_ASSIGN(ShellSpeechRecognitionPreferences);
82 }; 83 };
83 84
84 } // namespace 85 } // namespace
85 86
86 ShellBrowserContext* ShellBrowserContext::GetInstance() { 87 ShellBrowserContext::ShellBrowserContext(
87 return Singleton<ShellBrowserContext>::get(); 88 ShellBrowserMainParts* shell_main_parts)
88 } 89 : shell_main_parts_(shell_main_parts) {
89
90 ShellBrowserContext::ShellBrowserContext() {
91 InitWhileIOAllowed(); 90 InitWhileIOAllowed();
92 } 91 }
93 92
94 ShellBrowserContext::~ShellBrowserContext() { 93 ShellBrowserContext::~ShellBrowserContext() {
95 if (resource_context_.get()) { 94 if (resource_context_.get()) {
96 BrowserThread::DeleteSoon( 95 BrowserThread::DeleteSoon(
97 BrowserThread::IO, FROM_HERE, resource_context_.release()); 96 BrowserThread::IO, FROM_HERE, resource_context_.release());
98 } 97 }
99 } 98 }
100 99
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 184
186 bool ShellBrowserContext::DidLastSessionExitCleanly() { 185 bool ShellBrowserContext::DidLastSessionExitCleanly() {
187 return true; 186 return true;
188 } 187 }
189 188
190 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 189 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
191 return NULL; 190 return NULL;
192 } 191 }
193 192
194 } // namespace content 193 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | content/shell/shell_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698