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

Side by Side Diff: content/browser/dom_storage/dom_storage_context_wrapper.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 friend class DOMStorageMessageFilter; // for access to context() 73 friend class DOMStorageMessageFilter; // for access to context()
74 friend class SessionStorageNamespaceImpl; // ditto 74 friend class SessionStorageNamespaceImpl; // ditto
75 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>; 75 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>;
76 76
77 ~DOMStorageContextWrapper() override; 77 ~DOMStorageContextWrapper() override;
78 DOMStorageContextImpl* context() const { return context_.get(); } 78 DOMStorageContextImpl* context() const { return context_.get(); }
79 79
80 // An inner class to keep all mojo-ish details together and not bleed them 80 // An inner class to keep all mojo-ish details together and not bleed them
81 // through the public interface. 81 // through the public interface.
82 class MojoState; 82 class MojoState;
83 scoped_ptr<MojoState> mojo_state_; 83 std::unique_ptr<MojoState> mojo_state_;
84 84
85 scoped_refptr<DOMStorageContextImpl> context_; 85 scoped_refptr<DOMStorageContextImpl> context_;
86 86
87 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); 87 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper);
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 92 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_area.h ('k') | content/browser/dom_storage/dom_storage_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698