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

Side by Side Diff: extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h

Issue 1899083003: Convert //extensions/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_CONTA INER_H_ 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_CONTA INER_H_
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_CONTA INER_H_ 6 #define EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_CONTA INER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool is_embedded_; 98 bool is_embedded_;
99 99
100 // The original URL of the plugin. 100 // The original URL of the plugin.
101 GURL original_url_; 101 GURL original_url_;
102 102
103 // The RenderView routing ID of the guest. 103 // The RenderView routing ID of the guest.
104 int guest_proxy_routing_id_; 104 int guest_proxy_routing_id_;
105 105
106 // A URL loader to load the |original_url_| when the plugin is embedded. In 106 // A URL loader to load the |original_url_| when the plugin is embedded. In
107 // the embedded case, no URL request is made automatically. 107 // the embedded case, no URL request is made automatically.
108 scoped_ptr<blink::WebURLLoader> loader_; 108 std::unique_ptr<blink::WebURLLoader> loader_;
109 109
110 // The scriptable object that backs the plugin. 110 // The scriptable object that backs the plugin.
111 v8::Global<v8::Object> scriptable_object_; 111 v8::Global<v8::Object> scriptable_object_;
112 112
113 // Pending postMessage messages that need to be sent to the guest. These are 113 // Pending postMessage messages that need to be sent to the guest. These are
114 // queued while the guest is loading and once it is fully loaded they are 114 // queued while the guest is loading and once it is fully loaded they are
115 // delivered so that messages aren't lost. 115 // delivered so that messages aren't lost.
116 std::vector<linked_ptr<v8::Global<v8::Value>>> pending_messages_; 116 std::vector<linked_ptr<v8::Global<v8::Value>>> pending_messages_;
117 117
118 // True if the guest page has fully loaded and its JavaScript onload function 118 // True if the guest page has fully loaded and its JavaScript onload function
119 // has been called. 119 // has been called.
120 bool guest_loaded_; 120 bool guest_loaded_;
121 121
122 // The size of the element. 122 // The size of the element.
123 gfx::Size element_size_; 123 gfx::Size element_size_;
124 124
125 base::WeakPtrFactory<MimeHandlerViewContainer> weak_factory_; 125 base::WeakPtrFactory<MimeHandlerViewContainer> weak_factory_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewContainer); 127 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewContainer);
128 }; 128 };
129 129
130 } // namespace extensions 130 } // namespace extensions
131 131
132 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_CO NTAINER_H_ 132 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_CO NTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698