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_EXTENSION_TAB_ID_MAP_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_ID_MAP_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_ID_MAP_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_ID_MAP_H_ |
7 #pragma once | |
8 | 7 |
9 #include <map> | 8 #include <map> |
10 #include <utility> | 9 #include <utility> |
11 | 10 |
12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
13 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
14 | 13 |
15 // This class keeps track of a map between renderer IDs and tab/window IDs, for | 14 // This class keeps track of a map between renderer IDs and tab/window IDs, for |
16 // use on the IO thread. All methods should be called on the IO thread except | 15 // use on the IO thread. All methods should be called on the IO thread except |
17 // for Init and Shutdown. | 16 // for Init and Shutdown. |
(...skipping 29 matching lines...) Expand all Loading... |
47 void ClearTabAndWindowId( | 46 void ClearTabAndWindowId( |
48 int render_process_host_id, int routing_id); | 47 int render_process_host_id, int routing_id); |
49 | 48 |
50 TabObserver* observer_; | 49 TabObserver* observer_; |
51 TabAndWindowIdMap map_; | 50 TabAndWindowIdMap map_; |
52 | 51 |
53 DISALLOW_COPY_AND_ASSIGN(ExtensionTabIdMap); | 52 DISALLOW_COPY_AND_ASSIGN(ExtensionTabIdMap); |
54 }; | 53 }; |
55 | 54 |
56 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_ID_MAP_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_ID_MAP_H_ |
OLD | NEW |