OLD | NEW |
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_TEST_AUTOMATION_TAB_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" // NOLINT | 9 #include "build/build_config.h" // NOLINT |
10 | 10 |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 // Called when tracking the first object. Used for reference counting | 426 // Called when tracking the first object. Used for reference counting |
427 // purposes. | 427 // purposes. |
428 void FirstObjectAdded(); | 428 void FirstObjectAdded(); |
429 | 429 |
430 // Called when no longer tracking any objects. Used for reference counting | 430 // Called when no longer tracking any objects. Used for reference counting |
431 // purposes. | 431 // purposes. |
432 void LastObjectRemoved(); | 432 void LastObjectRemoved(); |
433 | 433 |
434 private: | 434 private: |
435 Lock list_lock_; // Protects the observers_list_. | 435 base::Lock list_lock_; // Protects the observers_list_. |
436 ObserverList<TabProxyDelegate> observers_list_; | 436 ObserverList<TabProxyDelegate> observers_list_; |
437 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 437 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
438 }; | 438 }; |
439 | 439 |
440 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 440 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |