| 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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/scoped_temp_dir.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 ShellBrowserMainParts; | |
| 20 class ShellDownloadManagerDelegate; | 19 class ShellDownloadManagerDelegate; |
| 21 | 20 |
| 22 class ShellBrowserContext : public BrowserContext { | 21 class ShellBrowserContext : public BrowserContext { |
| 23 public: | 22 public: |
| 24 explicit ShellBrowserContext(bool off_the_record); | 23 explicit ShellBrowserContext(bool off_the_record); |
| 25 virtual ~ShellBrowserContext(); | 24 virtual ~ShellBrowserContext(); |
| 26 | 25 |
| 27 // BrowserContext implementation. | 26 // BrowserContext implementation. |
| 28 virtual FilePath GetPath() OVERRIDE; | 27 virtual FilePath GetPath() OVERRIDE; |
| 29 virtual bool IsOffTheRecord() const OVERRIDE; | 28 virtual bool IsOffTheRecord() const OVERRIDE; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 51 scoped_ptr<ResourceContext> resource_context_; | 50 scoped_ptr<ResourceContext> resource_context_; |
| 52 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 51 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
| 53 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 52 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
| 54 | 53 |
| 55 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 54 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } // namespace content | 57 } // namespace content |
| 59 | 58 |
| 60 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 59 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
| OLD | NEW |