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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 virtual void Observe(NotificationType type, 524 virtual void Observe(NotificationType type,
525 const NotificationSource& source, 525 const NotificationSource& source,
526 const NotificationDetails& details); 526 const NotificationDetails& details);
527 527
528 private: 528 private:
529 ExecuteBrowserCommandObserver(AutomationProvider* automation, 529 ExecuteBrowserCommandObserver(AutomationProvider* automation,
530 IPC::Message* reply_message); 530 IPC::Message* reply_message);
531 531
532 bool Register(int command); 532 bool Register(int command);
533 533
534 bool GetNotificationType(int command, NotificationType::Type* type); 534 bool GetNotificationType(int command, int* type);
535 535
536 NotificationRegistrar registrar_; 536 NotificationRegistrar registrar_;
537 base::WeakPtr<AutomationProvider> automation_; 537 base::WeakPtr<AutomationProvider> automation_;
538 NotificationType::Type notification_type_; 538 int notification_type_;
539 scoped_ptr<IPC::Message> reply_message_; 539 scoped_ptr<IPC::Message> reply_message_;
540 540
541 DISALLOW_COPY_AND_ASSIGN(ExecuteBrowserCommandObserver); 541 DISALLOW_COPY_AND_ASSIGN(ExecuteBrowserCommandObserver);
542 }; 542 };
543 543
544 class FindInPageNotificationObserver : public NotificationObserver { 544 class FindInPageNotificationObserver : public NotificationObserver {
545 public: 545 public:
546 FindInPageNotificationObserver(AutomationProvider* automation, 546 FindInPageNotificationObserver(AutomationProvider* automation,
547 TabContents* parent_tab, 547 TabContents* parent_tab,
548 bool reply_with_json, 548 bool reply_with_json,
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 1550
1551 private: 1551 private:
1552 NotificationRegistrar registrar_; 1552 NotificationRegistrar registrar_;
1553 base::WeakPtr<AutomationProvider> automation_; 1553 base::WeakPtr<AutomationProvider> automation_;
1554 scoped_ptr<IPC::Message> reply_message_; 1554 scoped_ptr<IPC::Message> reply_message_;
1555 1555
1556 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); 1556 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver);
1557 }; 1557 };
1558 1558
1559 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1559 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698