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

Side by Side Diff: chrome/browser/extensions/api/identity/web_auth_flow.h

Issue 16702003: Move ShellWindow into apps component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yar Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IDENTITY_WEB_AUTH_FLOW_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_WEB_AUTH_FLOW_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_WEB_AUTH_FLOW_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_WEB_AUTH_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/shell_window_registry.h" 10 #include "chrome/browser/extensions/shell_window_registry.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Starts the flow. 85 // Starts the flow.
86 virtual void Start(); 86 virtual void Start();
87 87
88 // Prevents further calls to the delegate and deletes the flow. 88 // Prevents further calls to the delegate and deletes the flow.
89 void DetachDelegateAndDelete(); 89 void DetachDelegateAndDelete();
90 90
91 private: 91 private:
92 friend class ::WebAuthFlowTest; 92 friend class ::WebAuthFlowTest;
93 93
94 // ShellWindowRegistry::Observer implementation. 94 // ShellWindowRegistry::Observer implementation.
95 virtual void OnShellWindowAdded(ShellWindow* shell_window) OVERRIDE; 95 virtual void OnShellWindowAdded(apps::ShellWindow* shell_window) OVERRIDE;
96 virtual void OnShellWindowIconChanged(ShellWindow* shell_window) OVERRIDE {} 96 virtual void OnShellWindowIconChanged(apps::ShellWindow* shell_window)
97 virtual void OnShellWindowRemoved(ShellWindow* shell_window) OVERRIDE; 97 OVERRIDE;
98 virtual void OnShellWindowRemoved(apps::ShellWindow* shell_window) OVERRIDE;
98 99
99 // NotificationObserver implementation. 100 // NotificationObserver implementation.
100 virtual void Observe(int type, 101 virtual void Observe(int type,
101 const content::NotificationSource& source, 102 const content::NotificationSource& source,
102 const content::NotificationDetails& details) OVERRIDE; 103 const content::NotificationDetails& details) OVERRIDE;
103 104
104 // WebContentsObserver implementation. 105 // WebContentsObserver implementation.
105 virtual void DidStopLoading(content::RenderViewHost* render_view_host) 106 virtual void DidStopLoading(content::RenderViewHost* render_view_host)
106 OVERRIDE; 107 OVERRIDE;
107 virtual void DidNavigateMainFrame( 108 virtual void DidNavigateMainFrame(
(...skipping 17 matching lines...) Expand all
125 OVERRIDE; 126 OVERRIDE;
126 127
127 void BeforeUrlLoaded(const GURL& url); 128 void BeforeUrlLoaded(const GURL& url);
128 void AfterUrlLoaded(); 129 void AfterUrlLoaded();
129 130
130 Delegate* delegate_; 131 Delegate* delegate_;
131 Profile* profile_; 132 Profile* profile_;
132 GURL provider_url_; 133 GURL provider_url_;
133 Mode mode_; 134 Mode mode_;
134 135
135 ShellWindow* shell_window_; 136 apps::ShellWindow* shell_window_;
136 std::string shell_window_key_; 137 std::string shell_window_key_;
137 bool embedded_window_created_; 138 bool embedded_window_created_;
138 139
139 content::NotificationRegistrar registrar_; 140 content::NotificationRegistrar registrar_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(WebAuthFlow); 142 DISALLOW_COPY_AND_ASSIGN(WebAuthFlow);
142 }; 143 };
143 144
144 } // namespace extensions 145 } // namespace extensions
145 146
146 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_WEB_AUTH_FLOW_H_ 147 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_WEB_AUTH_FLOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | chrome/browser/extensions/api/identity/web_auth_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698