Roll src/third_party/skia a6ae14e:85693c1
[chromium-blink-merge.git] / ios / web / shell / shell_browser_state.h
blobf08121da3c94e29fb7f9c9ad70dc329ee35d0fa3
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"
15 namespace web {
17 class ShellBrowserContext;
18 class ShellURLRequestContextGetter;
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;
27 // BrowserState implementation.
28 bool IsOffTheRecord() const override;
29 base::FilePath GetStatePath() const override;
30 net::URLRequestContextGetter* GetRequestContext() override;
32 private:
33 base::FilePath path_;
34 scoped_refptr<ShellURLRequestContextGetter> request_context_getter_;
36 DISALLOW_COPY_AND_ASSIGN(ShellBrowserState);
39 } // namespace web
41 #endif // IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_