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

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

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header Created 4 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_ 5 #ifndef IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_
6 #define IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_ 6 #define IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_
7 7
8 #include "ios/web/public/browser_state.h" 8 #include <memory>
noyau (Ping after 24h) 2016/04/07 13:34:05 Not needed.
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "ios/web/public/browser_state.h"
14 14
15 namespace web { 15 namespace web {
16 16
17 class ShellBrowserContext; 17 class ShellBrowserContext;
18 class ShellURLRequestContextGetter; 18 class ShellURLRequestContextGetter;
19 19
20 // Shell-specific implementation of BrowserState. Can only be called from the 20 // Shell-specific implementation of BrowserState. Can only be called from the
21 // UI thread. 21 // UI thread.
22 class ShellBrowserState : public BrowserState { 22 class ShellBrowserState : public BrowserState {
23 public: 23 public:
24 ShellBrowserState(); 24 ShellBrowserState();
25 ~ShellBrowserState() override; 25 ~ShellBrowserState() override;
26 26
27 // BrowserState implementation. 27 // BrowserState implementation.
28 bool IsOffTheRecord() const override; 28 bool IsOffTheRecord() const override;
29 base::FilePath GetStatePath() const override; 29 base::FilePath GetStatePath() const override;
30 net::URLRequestContextGetter* GetRequestContext() override; 30 net::URLRequestContextGetter* GetRequestContext() override;
31 31
32 private: 32 private:
33 base::FilePath path_; 33 base::FilePath path_;
34 scoped_refptr<ShellURLRequestContextGetter> request_context_getter_; 34 scoped_refptr<ShellURLRequestContextGetter> request_context_getter_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(ShellBrowserState); 36 DISALLOW_COPY_AND_ASSIGN(ShellBrowserState);
37 }; 37 };
38 38
39 } // namespace web 39 } // namespace web
40 40
41 #endif // IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_ 41 #endif // IOS_WEB_SHELL_SHELL_BROWSER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698