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.
5 #ifndef IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_
6 #define IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_
8 #include "ios/web/public/browser_state.h"
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"
17 class ShellBrowserContext
;
18 class ShellURLRequestContextGetter
;
20 // Shell-specific implementation of BrowserState. Can only be called from the
22 class ShellBrowserState
: public BrowserState
{
25 ~ShellBrowserState() override
;
27 // BrowserState implementation.
28 bool IsOffTheRecord() const override
;
29 base::FilePath
GetStatePath() const override
;
30 net::URLRequestContextGetter
* GetRequestContext() override
;
34 scoped_refptr
<ShellURLRequestContextGetter
> request_context_getter_
;
36 DISALLOW_COPY_AND_ASSIGN(ShellBrowserState
);
41 #endif // IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_