Introduce new SPDY Version UMA histogram.
[chromium-blink-merge.git] / mojo / examples / pepper_container_app / interface_list.h
blob5cff06c5d8380fa7d641108f6f673a56fa48e32b
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_EXAMPLES_PEPPER_CONTAINER_APP_INTERFACE_LIST_H_
6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_INTERFACE_LIST_H_
8 #include <map>
9 #include <string>
11 #include "base/macros.h"
13 namespace mojo {
14 namespace examples {
16 // InterfaceList maintains the mapping from Pepper interface names to
17 // interface pointers.
18 class InterfaceList {
19 public:
20 InterfaceList();
21 ~InterfaceList();
23 static InterfaceList* GetInstance();
25 const void* GetBrowserInterface(const std::string& name) const;
27 private:
28 typedef std::map<std::string, const void*> NameToInterfaceMap;
29 NameToInterfaceMap browser_interfaces_;
31 DISALLOW_COPY_AND_ASSIGN(InterfaceList);
34 } // namespace examples
35 } // namespace mojo
37 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_INTERFACE_LIST_H_