OLD | NEW |
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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } // namespace WebKit | 75 } // namespace WebKit |
76 | 76 |
77 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT | 77 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT |
78 // notifications. | 78 // notifications. |
79 class ExecuteNotificationObserver : public content::NotificationObserver { | 79 class ExecuteNotificationObserver : public content::NotificationObserver { |
80 public: | 80 public: |
81 explicit ExecuteNotificationObserver(int id); | 81 explicit ExecuteNotificationObserver(int id); |
82 virtual ~ExecuteNotificationObserver(); | 82 virtual ~ExecuteNotificationObserver(); |
83 virtual void Observe(int type, | 83 virtual void Observe(int type, |
84 const content::NotificationSource& source, | 84 const content::NotificationSource& source, |
85 const content::NotificationDetails& details); | 85 const content::NotificationDetails& details) OVERRIDE; |
86 | 86 |
87 int id() const { return id_; } | 87 int id() const { return id_; } |
88 | 88 |
89 Value* value() const { return value_.get(); } | 89 Value* value() const { return value_.get(); } |
90 | 90 |
91 private: | 91 private: |
92 int id_; | 92 int id_; |
93 scoped_ptr<Value> value_; | 93 scoped_ptr<Value> value_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(ExecuteNotificationObserver); | 95 DISALLOW_COPY_AND_ASSIGN(ExecuteNotificationObserver); |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 674 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
675 PowerSaveBlockerMap power_save_blockers_; | 675 PowerSaveBlockerMap power_save_blockers_; |
676 | 676 |
677 // A list of observers that filter messages. Weak references. | 677 // A list of observers that filter messages. Weak references. |
678 ObserverList<RenderViewHostObserver> observers_; | 678 ObserverList<RenderViewHostObserver> observers_; |
679 | 679 |
680 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 680 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
681 }; | 681 }; |
682 | 682 |
683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |