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

Side by Side Diff: content/renderer/mojo_context_state.h

Issue 1873783003: Convert //content/renderer 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
« no previous file with comments | « content/renderer/mojo_bindings_controller.cc ('k') | content/renderer/mojo_context_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_ 5 #ifndef CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_
6 #define CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_ 6 #define CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_
7 7
8 #include <memory>
8 #include <set> 9 #include <set>
9 #include <string> 10 #include <string>
10 11
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "gin/modules/module_registry_observer.h" 14 #include "gin/modules/module_registry_observer.h"
15 #include "v8/include/v8.h" 15 #include "v8/include/v8.h"
16 16
17 namespace blink { 17 namespace blink {
18 class WebFrame; 18 class WebFrame;
19 class WebURLResponse; 19 class WebURLResponse;
20 } 20 }
21 21
22 namespace gin { 22 namespace gin {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const std::string& id, 64 const std::string& id,
65 const std::vector<std::string>& dependencies) override; 65 const std::vector<std::string>& dependencies) override;
66 66
67 // Frame script is executed in. Also used to download resources. 67 // Frame script is executed in. Also used to download resources.
68 blink::WebFrame* frame_; 68 blink::WebFrame* frame_;
69 69
70 // See description above getter. 70 // See description above getter.
71 bool module_added_; 71 bool module_added_;
72 72
73 // Executes the script from gin. 73 // Executes the script from gin.
74 scoped_ptr<MojoMainRunner> runner_; 74 std::unique_ptr<MojoMainRunner> runner_;
75 75
76 // Set of fetchers we're waiting on to download script. 76 // Set of fetchers we're waiting on to download script.
77 ScopedVector<ResourceFetcher> module_fetchers_; 77 ScopedVector<ResourceFetcher> module_fetchers_;
78 78
79 // Set of modules we've fetched script from. 79 // Set of modules we've fetched script from.
80 std::set<std::string> fetched_modules_; 80 std::set<std::string> fetched_modules_;
81 81
82 // The prefix to use for all module requests. 82 // The prefix to use for all module requests.
83 const std::string module_prefix_; 83 const std::string module_prefix_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(MojoContextState); 85 DISALLOW_COPY_AND_ASSIGN(MojoContextState);
86 }; 86 };
87 87
88 } // namespace content 88 } // namespace content
89 89
90 #endif // CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_ 90 #endif // CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_
OLDNEW
« no previous file with comments | « content/renderer/mojo_bindings_controller.cc ('k') | content/renderer/mojo_context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698