OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_ |
| 6 #define IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_ |
| 7 |
| 8 #include "ios/web/public/browser_state.h" |
| 9 |
| 10 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" |
| 14 |
| 15 namespace web { |
| 16 |
| 17 class ShellBrowserContext; |
| 18 class ShellURLRequestContextGetter; |
| 19 |
| 20 // Shell-specific implementation of BrowserState. Can only be called from the |
| 21 // UI thread. |
| 22 class ShellBrowserState : public BrowserState { |
| 23 public: |
| 24 ShellBrowserState(); |
| 25 ~ShellBrowserState() override; |
| 26 |
| 27 // BrowserState implementation. |
| 28 bool IsOffTheRecord() const override; |
| 29 base::FilePath GetStatePath() const override; |
| 30 net::URLRequestContextGetter* GetRequestContext() override; |
| 31 |
| 32 private: |
| 33 base::FilePath path_; |
| 34 scoped_refptr<ShellURLRequestContextGetter> request_context_getter_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(ShellBrowserState); |
| 37 }; |
| 38 |
| 39 } // namespace web |
| 40 |
| 41 #endif // IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_ |
OLD | NEW |