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

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

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 bool success_; 501 bool success_;
502 IPC::Message* reply_message_; 502 IPC::Message* reply_message_;
503 503
504 DISALLOW_COPY_AND_ASSIGN(DocumentPrintedNotificationObserver); 504 DISALLOW_COPY_AND_ASSIGN(DocumentPrintedNotificationObserver);
505 }; 505 };
506 506
507 // Collects METRIC_EVENT_DURATION notifications and keep track of the times. 507 // Collects METRIC_EVENT_DURATION notifications and keep track of the times.
508 class MetricEventDurationObserver : public NotificationObserver { 508 class MetricEventDurationObserver : public NotificationObserver {
509 public: 509 public:
510 MetricEventDurationObserver(); 510 MetricEventDurationObserver();
511 virtual ~MetricEventDurationObserver();
511 512
512 // Get the duration of an event. Returns -1 if we haven't seen the event. 513 // Get the duration of an event. Returns -1 if we haven't seen the event.
513 int GetEventDurationMs(const std::string& event_name); 514 int GetEventDurationMs(const std::string& event_name);
514 515
515 // NotificationObserver interface. 516 // NotificationObserver interface.
516 virtual void Observe(NotificationType type, const NotificationSource& source, 517 virtual void Observe(NotificationType type, const NotificationSource& source,
517 const NotificationDetails& details); 518 const NotificationDetails& details);
518 519
519 private: 520 private:
520 NotificationRegistrar registrar_; 521 NotificationRegistrar registrar_;
521 522
522 typedef std::map<std::string, int> EventDurationMap; 523 typedef std::map<std::string, int> EventDurationMap;
523 EventDurationMap durations_; 524 EventDurationMap durations_;
524 525
525 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver); 526 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver);
526 }; 527 };
527 528
528 class PageTranslatedObserver : public NotificationObserver { 529 class PageTranslatedObserver : public NotificationObserver {
529 public: 530 public:
530 PageTranslatedObserver(AutomationProvider* automation, 531 PageTranslatedObserver(AutomationProvider* automation,
531 IPC::Message* reply_message, 532 IPC::Message* reply_message,
532 TabContents* tab_contents); 533 TabContents* tab_contents);
534 virtual ~PageTranslatedObserver();
533 535
534 // NotificationObserver interface. 536 // NotificationObserver interface.
535 virtual void Observe(NotificationType type, 537 virtual void Observe(NotificationType type,
536 const NotificationSource& source, 538 const NotificationSource& source,
537 const NotificationDetails& details); 539 const NotificationDetails& details);
538 540
539 private: 541 private:
540 NotificationRegistrar registrar_; 542 NotificationRegistrar registrar_;
541 scoped_refptr<AutomationProvider> automation_; 543 scoped_refptr<AutomationProvider> automation_;
542 IPC::Message* reply_message_; 544 IPC::Message* reply_message_;
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 private: 882 private:
881 NotificationRegistrar registrar_; 883 NotificationRegistrar registrar_;
882 AutomationProvider* automation_; 884 AutomationProvider* automation_;
883 IPC::Message* reply_message_; 885 IPC::Message* reply_message_;
884 AutocompleteEditModel* autocomplete_edit_model_; 886 AutocompleteEditModel* autocomplete_edit_model_;
885 887
886 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditFocusedObserver); 888 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditFocusedObserver);
887 }; 889 };
888 890
889 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 891 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698