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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 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 | 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_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 public: 686 public:
687 LoginObserver(chromeos::ExistingUserController* controller, 687 LoginObserver(chromeos::ExistingUserController* controller,
688 AutomationProvider* automation, 688 AutomationProvider* automation,
689 IPC::Message* reply_message); 689 IPC::Message* reply_message);
690 690
691 virtual ~LoginObserver(); 691 virtual ~LoginObserver();
692 692
693 virtual void OnLoginFailure(const chromeos::LoginFailure& error); 693 virtual void OnLoginFailure(const chromeos::LoginFailure& error);
694 694
695 virtual void OnLoginSuccess( 695 virtual void OnLoginSuccess(
696 const std::string& username, 696 const chromeos::UserCredentials& credentials,
697 const std::string& password,
698 bool pending_requests, 697 bool pending_requests,
699 bool using_oauth); 698 bool using_oauth);
700 699
701 private: 700 private:
702 chromeos::ExistingUserController* controller_; 701 chromeos::ExistingUserController* controller_;
703 base::WeakPtr<AutomationProvider> automation_; 702 base::WeakPtr<AutomationProvider> automation_;
704 scoped_ptr<IPC::Message> reply_message_; 703 scoped_ptr<IPC::Message> reply_message_;
705 704
706 DISALLOW_COPY_AND_ASSIGN(LoginObserver); 705 DISALLOW_COPY_AND_ASSIGN(LoginObserver);
707 }; 706 };
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 class ScreenUnlockObserver : public ScreenLockUnlockObserver, 775 class ScreenUnlockObserver : public ScreenLockUnlockObserver,
777 public chromeos::LoginStatusConsumer { 776 public chromeos::LoginStatusConsumer {
778 public: 777 public:
779 ScreenUnlockObserver(AutomationProvider* automation, 778 ScreenUnlockObserver(AutomationProvider* automation,
780 IPC::Message* reply_message); 779 IPC::Message* reply_message);
781 virtual ~ScreenUnlockObserver(); 780 virtual ~ScreenUnlockObserver();
782 781
783 virtual void OnLoginFailure(const chromeos::LoginFailure& error); 782 virtual void OnLoginFailure(const chromeos::LoginFailure& error);
784 783
785 virtual void OnLoginSuccess( 784 virtual void OnLoginSuccess(
786 const std::string& username, 785 const chromeos::UserCredentials& credentials,
787 const std::string& password,
788 bool pending_requests, 786 bool pending_requests,
789 bool using_oauth) {} 787 bool using_oauth) {}
790 788
791 private: 789 private:
792 DISALLOW_COPY_AND_ASSIGN(ScreenUnlockObserver); 790 DISALLOW_COPY_AND_ASSIGN(ScreenUnlockObserver);
793 }; 791 };
794 792
795 class NetworkScanObserver 793 class NetworkScanObserver
796 : public chromeos::NetworkLibrary::NetworkManagerObserver { 794 : public chromeos::NetworkLibrary::NetworkManagerObserver {
797 public: 795 public:
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 base::WeakPtr<AutomationProvider> automation_; 1800 base::WeakPtr<AutomationProvider> automation_;
1803 scoped_ptr<IPC::Message> reply_message_; 1801 scoped_ptr<IPC::Message> reply_message_;
1804 int new_window_id_; 1802 int new_window_id_;
1805 int num_loads_; 1803 int num_loads_;
1806 1804
1807 DISALLOW_COPY_AND_ASSIGN( 1805 DISALLOW_COPY_AND_ASSIGN(
1808 BrowserOpenedWithExistingProfileNotificationObserver); 1806 BrowserOpenedWithExistingProfileNotificationObserver);
1809 }; 1807 };
1810 1808
1811 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1809 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698