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

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

Issue 10535081: Fixed a bug in the WaitUntilNavigationCompletes automation command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 IPC::Message* reply_message, 224 IPC::Message* reply_message,
225 int number_of_navigations, 225 int number_of_navigations,
226 bool include_current_navigation, 226 bool include_current_navigation,
227 bool use_json_interface); 227 bool use_json_interface);
228 virtual ~NavigationNotificationObserver(); 228 virtual ~NavigationNotificationObserver();
229 229
230 virtual void Observe(int type, 230 virtual void Observe(int type,
231 const content::NotificationSource& source, 231 const content::NotificationSource& source,
232 const content::NotificationDetails& details); 232 const content::NotificationDetails& details);
233 233
234 private:
235 void ConditionMet(AutomationMsg_NavigationResponseValues navigation_result); 234 void ConditionMet(AutomationMsg_NavigationResponseValues navigation_result);
236 235
236 private:
237 content::NotificationRegistrar registrar_; 237 content::NotificationRegistrar registrar_;
238 base::WeakPtr<AutomationProvider> automation_; 238 base::WeakPtr<AutomationProvider> automation_;
239 scoped_ptr<IPC::Message> reply_message_; 239 scoped_ptr<IPC::Message> reply_message_;
240 content::NavigationController* controller_; 240 content::NavigationController* controller_;
241 int navigations_remaining_; 241 int navigations_remaining_;
242 bool navigation_started_; 242 bool navigation_started_;
243 bool use_json_interface_; 243 bool use_json_interface_;
244 244
245 DISALLOW_COPY_AND_ASSIGN(NavigationNotificationObserver); 245 DISALLOW_COPY_AND_ASSIGN(NavigationNotificationObserver);
246 }; 246 };
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 private: 1891 private:
1892 base::WeakPtr<AutomationProvider> automation_; 1892 base::WeakPtr<AutomationProvider> automation_;
1893 scoped_ptr<IPC::Message> reply_message_; 1893 scoped_ptr<IPC::Message> reply_message_;
1894 std::string extension_id_; 1894 std::string extension_id_;
1895 content::NotificationRegistrar registrar_; 1895 content::NotificationRegistrar registrar_;
1896 1896
1897 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); 1897 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver);
1898 }; 1898 };
1899 1899
1900 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1900 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698