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 CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // The message loop to call our master back on. | 107 // The message loop to call our master back on. |
108 // Expected to always outlive us. | 108 // Expected to always outlive us. |
109 BrowserThread::ID master_thread_id_; | 109 BrowserThread::ID master_thread_id_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(ScriptReloader); | 111 DISALLOW_COPY_AND_ASSIGN(ScriptReloader); |
112 }; | 112 }; |
113 | 113 |
114 private: | 114 private: |
115 // NotificationObserver implementation. | 115 // NotificationObserver implementation. |
116 virtual void Observe(NotificationType type, | 116 virtual void Observe(int type, |
117 const NotificationSource& source, | 117 const NotificationSource& source, |
118 const NotificationDetails& details); | 118 const NotificationDetails& details); |
119 | 119 |
120 // Sends the renderer process a new set of user scripts. | 120 // Sends the renderer process a new set of user scripts. |
121 void SendUpdate(RenderProcessHost* process, | 121 void SendUpdate(RenderProcessHost* process, |
122 base::SharedMemory* shared_memory); | 122 base::SharedMemory* shared_memory); |
123 | 123 |
124 // Manages our notification registrations. | 124 // Manages our notification registrations. |
125 NotificationRegistrar registrar_; | 125 NotificationRegistrar registrar_; |
126 | 126 |
(...skipping 15 matching lines...) Expand all Loading... |
142 // finishes. This boolean tracks whether another load is pending. | 142 // finishes. This boolean tracks whether another load is pending. |
143 bool pending_load_; | 143 bool pending_load_; |
144 | 144 |
145 // The profile for which the scripts managed here are installed. | 145 // The profile for which the scripts managed here are installed. |
146 Profile* profile_; | 146 Profile* profile_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(UserScriptMaster); | 148 DISALLOW_COPY_AND_ASSIGN(UserScriptMaster); |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ | 151 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ |
OLD | NEW |