| 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_RENDERER_PLUGINS_MISSING_PLUGIN_H_ | 5 #ifndef CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ |
| 6 #define CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ | 6 #define CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "chrome/renderer/plugins/plugin_placeholder.h" | 10 #include "chrome/renderer/plugins/plugin_placeholder.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // IPC::Channel::Listener methods: | 37 // IPC::Channel::Listener methods: |
| 38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 39 | 39 |
| 40 // content::RenderViewObserver methods: | 40 // content::RenderViewObserver methods: |
| 41 virtual void ContextMenuAction(unsigned id) OVERRIDE; | 41 virtual void ContextMenuAction(unsigned id) OVERRIDE; |
| 42 | 42 |
| 43 void HideCallback(const CppArgumentList& args, CppVariant* result); | 43 void HideCallback(const CppArgumentList& args, CppVariant* result); |
| 44 | 44 |
| 45 void OnFoundMissingPlugin(const string16& plugin_name); | 45 void OnFoundMissingPlugin(const string16& plugin_name); |
| 46 void OnDidNotFindMissingPlugin(); | 46 void OnDidNotFindMissingPlugin(); |
| 47 void OnStartedDownloadingPlugin(); |
| 48 void OnFinishedDownloadingPlugin(); |
| 47 | 49 |
| 48 void SetMessage(const string16& message); | 50 void SetMessage(const string16& message); |
| 49 void UpdateMessage(); | 51 void UpdateMessage(); |
| 50 | 52 |
| 51 WebKit::WebString mime_type_; | 53 WebKit::WebString mime_type_; |
| 52 | 54 |
| 53 // |routing_id()| is the routing ID of our associated RenderView, but we have | 55 // |routing_id()| is the routing ID of our associated RenderView, but we have |
| 54 // a separate routing ID for messages specific to this placeholder. | 56 // a separate routing ID for messages specific to this placeholder. |
| 55 int32 placeholder_routing_id_; | 57 int32 placeholder_routing_id_; |
| 56 | 58 |
| 57 string16 message_; | 59 string16 message_; |
| 58 | 60 |
| 59 DISALLOW_COPY_AND_ASSIGN(MissingPlugin); | 61 DISALLOW_COPY_AND_ASSIGN(MissingPlugin); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 #endif // CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ | 64 #endif // CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ |
| OLD | NEW |