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

Side by Side Diff: extensions/browser/mojo/stash_backend.h

Issue 1909773002: Convert //extensions/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 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 EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ 5 #ifndef EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_
6 #define EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ 6 #define EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 21 matching lines...) Expand all
32 // RetrieveStash. 32 // RetrieveStash.
33 mojo::Array<StashedObjectPtr> RetrieveStash(); 33 mojo::Array<StashedObjectPtr> RetrieveStash();
34 34
35 private: 35 private:
36 class StashEntry; 36 class StashEntry;
37 37
38 // Invoked when a handle is readable. 38 // Invoked when a handle is readable.
39 void OnHandleReady(); 39 void OnHandleReady();
40 40
41 // The objects that have been stashed. 41 // The objects that have been stashed.
42 std::vector<scoped_ptr<StashEntry>> stashed_objects_; 42 std::vector<std::unique_ptr<StashEntry>> stashed_objects_;
43 43
44 // The callback to call when a handle is readable. 44 // The callback to call when a handle is readable.
45 const base::Closure on_handle_readable_; 45 const base::Closure on_handle_readable_;
46 46
47 // Whether a handle has become readable since the last RetrieveStash() call. 47 // Whether a handle has become readable since the last RetrieveStash() call.
48 bool has_notified_; 48 bool has_notified_;
49 49
50 base::WeakPtrFactory<StashBackend> weak_factory_; 50 base::WeakPtrFactory<StashBackend> weak_factory_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(StashBackend); 52 DISALLOW_COPY_AND_ASSIGN(StashBackend);
53 }; 53 };
54 54
55 } // namespace extensions 55 } // namespace extensions
56 56
57 #endif // EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ 57 #endif // EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_
OLDNEW
« no previous file with comments | « extensions/browser/mojo/keep_alive_impl_unittest.cc ('k') | extensions/browser/mojo/stash_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698