OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PLUGIN_FINDER_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ |
6 #define CHROME_BROWSER_PLUGIN_FINDER_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/string16.h" | 16 #include "base/string16.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 std::map<std::string, PluginInstaller*> installers_; | 68 std::map<std::string, PluginInstaller*> installers_; |
69 | 69 |
70 // Note: Don't free memory for |name_insallers_| values | 70 // Note: Don't free memory for |name_insallers_| values |
71 // since it holds pointers to same instances | 71 // since it holds pointers to same instances |
72 // in |installers_| (Double De-allocation). | 72 // in |installers_| (Double De-allocation). |
73 base::hash_map<string16, PluginInstaller*> name_installers_; | 73 base::hash_map<string16, PluginInstaller*> name_installers_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(PluginFinder); | 75 DISALLOW_COPY_AND_ASSIGN(PluginFinder); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_PLUGIN_FINDER_H_ | 78 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ |
OLD | NEW |