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

Side by Side Diff: chrome/browser/extensions/api/developer_private/inspectable_views_finder.h

Issue 1811413002: [Extensions] Update generated code to support move operations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_INSPECTABLE_VIEWS_FINDER _H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_INSPECTABLE_VIEWS_FINDER _H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_INSPECTABLE_VIEWS_FINDER _H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_INSPECTABLE_VIEWS_FINDER _H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 namespace api { 21 namespace api {
22 namespace developer_private { 22 namespace developer_private {
23 struct ExtensionView; 23 struct ExtensionView;
24 } 24 }
25 } 25 }
26 26
27 // Finds inspectable views for the extensions, and returns them as represented 27 // Finds inspectable views for the extensions, and returns them as represented
28 // by the developerPrivate API structure and schema compiler. 28 // by the developerPrivate API structure and schema compiler.
29 class InspectableViewsFinder { 29 class InspectableViewsFinder {
30 public: 30 public:
31 using View = linked_ptr<api::developer_private::ExtensionView>; 31 using View = api::developer_private::ExtensionView;
32 using ViewList = std::vector<View>; 32 using ViewList = std::vector<View>;
33 33
34 explicit InspectableViewsFinder(Profile* profile); 34 explicit InspectableViewsFinder(Profile* profile);
35 ~InspectableViewsFinder(); 35 ~InspectableViewsFinder();
36 36
37 // Construct a view from the given parameters. 37 // Construct a view from the given parameters.
38 static View ConstructView(const GURL& url, 38 static View ConstructView(const GURL& url,
39 int render_process_id, 39 int render_process_id,
40 int render_view_id, 40 int render_view_id,
41 bool incognito, 41 bool incognito,
(...skipping 23 matching lines...) Expand all
65 ViewList* result); 65 ViewList* result);
66 66
67 Profile* profile_; 67 Profile* profile_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(InspectableViewsFinder); 69 DISALLOW_COPY_AND_ASSIGN(InspectableViewsFinder);
70 }; 70 };
71 71
72 } // namespace extensions 72 } // namespace extensions
73 73
74 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_INSPECTABLE_VIEWS_FIN DER_H_ 74 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_INSPECTABLE_VIEWS_FIN DER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698