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

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

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 #include "chrome/browser/extensions/api/identity/web_auth_flow.h" 5 #include "chrome/browser/extensions/api/identity/web_auth_flow.h"
6 6
7 #include "apps/shell_window.h" 7 #include "apps/shell_window.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/extensions/component_loader.h" 13 #include "chrome/browser/extensions/component_loader.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_system.h"
16 #include "chrome/browser/extensions/extension_system.h"
17 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/common/extensions/api/identity_private.h" 16 #include "chrome/common/extensions/api/identity_private.h"
19 #include "chrome/common/extensions/extension_constants.h" 17 #include "chrome/common/extensions/extension_constants.h"
20 #include "content/public/browser/navigation_details.h" 18 #include "content/public/browser/navigation_details.h"
21 #include "content/public/browser/navigation_entry.h" 19 #include "content/public/browser/navigation_entry.h"
22 #include "content/public/browser/notification_details.h" 20 #include "content/public/browser/notification_details.h"
23 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
24 #include "content/public/browser/notification_source.h" 22 #include "content/public/browser/notification_source.h"
25 #include "content/public/browser/notification_types.h" 23 #include "content/public/browser/notification_types.h"
26 #include "content/public/browser/render_view_host.h" 24 #include "content/public/browser/render_view_host.h"
27 #include "content/public/browser/resource_request_details.h" 25 #include "content/public/browser/resource_request_details.h"
28 #include "content/public/browser/web_contents.h" 26 #include "content/public/browser/web_contents.h"
29 #include "crypto/random.h" 27 #include "crypto/random.h"
30 #include "extensions/browser/event_router.h" 28 #include "extensions/browser/event_router.h"
29 #include "extensions/browser/extension_system.h"
30 #include "extensions/browser/extension_system.h"
James Cook 2014/01/28 23:40:57 Heh. Funny. The file move tool maintained the erro
Yoyo Zhou 2014/01/29 00:42:56 Fixed.
31 #include "grit/browser_resources.h" 31 #include "grit/browser_resources.h"
32 #include "url/gurl.h" 32 #include "url/gurl.h"
33 33
34 using apps::ShellWindow; 34 using apps::ShellWindow;
35 using content::RenderViewHost; 35 using content::RenderViewHost;
36 using content::ResourceRedirectDetails; 36 using content::ResourceRedirectDetails;
37 using content::WebContents; 37 using content::WebContents;
38 using content::WebContentsObserver; 38 using content::WebContentsObserver;
39 39
40 namespace extensions { 40 namespace extensions {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 239
240 void WebAuthFlow::DidNavigateMainFrame( 240 void WebAuthFlow::DidNavigateMainFrame(
241 const content::LoadCommittedDetails& details, 241 const content::LoadCommittedDetails& details,
242 const content::FrameNavigateParams& params) { 242 const content::FrameNavigateParams& params) {
243 if (delegate_ && details.http_status_code >= 400) 243 if (delegate_ && details.http_status_code >= 400)
244 delegate_->OnAuthFlowFailure(LOAD_FAILED); 244 delegate_->OnAuthFlowFailure(LOAD_FAILED);
245 } 245 }
246 246
247 } // namespace extensions 247 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698