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 #ifndef CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/files/scoped_temp_dir.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/scoped_temp_dir.h" | |
13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class DownloadManagerDelegate; | 17 class DownloadManagerDelegate; |
18 class ResourceContext; | 18 class ResourceContext; |
19 class ShellDownloadManagerDelegate; | 19 class ShellDownloadManagerDelegate; |
20 | 20 |
21 class ShellBrowserContext : public BrowserContext { | 21 class ShellBrowserContext : public BrowserContext { |
22 public: | 22 public: |
(...skipping 24 matching lines...) Expand all Loading... |
47 GetSpeechRecognitionPreferences() OVERRIDE; | 47 GetSpeechRecognitionPreferences() OVERRIDE; |
48 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 48 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
49 | 49 |
50 private: | 50 private: |
51 // Performs initialization of the ShellBrowserContext while IO is still | 51 // Performs initialization of the ShellBrowserContext while IO is still |
52 // allowed on the current thread. | 52 // allowed on the current thread. |
53 void InitWhileIOAllowed(); | 53 void InitWhileIOAllowed(); |
54 | 54 |
55 bool off_the_record_; | 55 bool off_the_record_; |
56 bool ignore_certificate_errors_; | 56 bool ignore_certificate_errors_; |
57 ScopedTempDir testing_path_; | 57 base::ScopedTempDir testing_path_; |
58 FilePath path_; | 58 FilePath path_; |
59 scoped_ptr<ResourceContext> resource_context_; | 59 scoped_ptr<ResourceContext> resource_context_; |
60 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 60 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
61 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 61 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 63 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace content | 66 } // namespace content |
67 | 67 |
68 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 68 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |