Bluetooth: Don't attempt a pairing for devices not supporting it.
[chromium-blink-merge.git] / content / renderer / web_ui_extension_data.h
blob23564c26cd8074974049647cd2958a88ab211548
1 // Copyright 2012 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 CONTENT_RENDERER_WEBUI_EXTENSION_DATA_H_
6 #define CONTENT_RENDERER_WEBUI_EXTENSION_DATA_H_
8 #include <map>
9 #include <string>
11 #include "base/basictypes.h"
12 #include "content/public/renderer/render_view_observer.h"
13 #include "content/public/renderer/render_view_observer_tracker.h"
15 namespace content {
17 class WebUIExtensionData
18 : public RenderViewObserver,
19 public RenderViewObserverTracker<WebUIExtensionData> {
20 public:
21 explicit WebUIExtensionData(RenderView* render_view);
22 virtual ~WebUIExtensionData();
24 // Returns value for a given |key|. Will return an empty string if no such key
25 // exists in the |variable_map_|.
26 std::string GetValue(const std::string& key) const;
28 private:
29 // RenderViewObserver implementation.
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
32 void OnSetWebUIProperty(const std::string& name, const std::string& value);
34 std::map<std::string, std::string> variable_map_;
36 DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtensionData);
39 } // namespace content
41 #endif // CONTENT_RENDERER_WEBUI_EXTENSION_DATA_H_