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

Side by Side Diff: chrome/browser/extensions/api/messaging/incognito_connectability.h

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 CHROME_BROWSER_EXTENSIONS_API_MESSAGING_INCOGNITO_CONNECTABILITY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_INCOGNITO_CONNECTABILITY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_INCOGNITO_CONNECTABILITY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_INCOGNITO_CONNECTABILITY_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // this profile, false otherwise. If unknown, the user will be prompted before 64 // this profile, false otherwise. If unknown, the user will be prompted before
65 // an answer is returned. 65 // an answer is returned.
66 void Query(const Extension* extension, 66 void Query(const Extension* extension,
67 content::WebContents* web_contents, 67 content::WebContents* web_contents,
68 const GURL& url, 68 const GURL& url,
69 const base::Callback<void(bool)>& callback); 69 const base::Callback<void(bool)>& callback);
70 70
71 private: 71 private:
72 struct TabContext { 72 struct TabContext {
73 TabContext(); 73 TabContext();
74 TabContext(const TabContext& other);
74 ~TabContext(); 75 ~TabContext();
75 76
76 // The infobar being shown in a given tab. The InfoBarManager maintains 77 // The infobar being shown in a given tab. The InfoBarManager maintains
77 // ownership of this object. This struct must always be destroyed before the 78 // ownership of this object. This struct must always be destroyed before the
78 // infobar it tracks. 79 // infobar it tracks.
79 infobars::InfoBar* infobar; 80 infobars::InfoBar* infobar;
80 // Connectability queries outstanding on this infobar. 81 // Connectability queries outstanding on this infobar.
81 std::vector<base::Callback<void(bool)>> callbacks; 82 std::vector<base::Callback<void(bool)>> callbacks;
82 }; 83 };
83 84
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // infobar and the set of callbacks (passed to Query) that will be called when 125 // infobar and the set of callbacks (passed to Query) that will be called when
125 // the query is resolved. 126 // the query is resolved.
126 PendingOriginMap pending_origins_; 127 PendingOriginMap pending_origins_;
127 128
128 base::WeakPtrFactory<IncognitoConnectability> weak_factory_; 129 base::WeakPtrFactory<IncognitoConnectability> weak_factory_;
129 }; 130 };
130 131
131 } // namespace extensions 132 } // namespace extensions
132 133
133 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_INCOGNITO_CONNECTABILITY_H_ 134 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_INCOGNITO_CONNECTABILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698