Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(804)

Side by Side Diff: ios/web/shell/shell_browser_state.h

Issue 1149323004: Upstream the iOS web_shell and supporting code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-thread-impl
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698