Chromium Code Reviews| Index: content/renderer/web_intents_host.h |
| diff --git a/content/renderer/web_intents_host.h b/content/renderer/web_intents_host.h |
| index 01164924a22e4b01d6e02bdb7e9fae74494ac2c0..499caebb10f0568bd72fb8b5299820ccd2c2c89b 100644 |
| --- a/content/renderer/web_intents_host.h |
| +++ b/content/renderer/web_intents_host.h |
| @@ -44,14 +44,6 @@ class WebIntentsHost : public content::RenderViewObserver { |
| void OnFailure(const WebKit::WebString& data); |
| private: |
| - // A counter used to assign unique IDs to web intents invocations in this |
| - // renderer. |
| - int id_counter_; |
| - |
| - // Map tracking registered Web Intent requests by assigned ID numbers to |
| - // correctly route any return data. |
| - std::map<int, WebKit::WebIntentRequest> intent_requests_; |
| - |
| // RenderView::Observer implementation. |
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| virtual void DidClearWindowObject(WebKit::WebFrame* frame) OVERRIDE; |
| @@ -70,6 +62,16 @@ class WebIntentsHost : public content::RenderViewObserver { |
| const WebKit::WebString& data, |
| int intent_id); |
| + friend class WebIntentsHostTest; |
|
groby-ooo-7-16
2012/10/05 17:56:35
Why not the more usual FRIEND_TEST_ALL_PREFIXES?
Greg Billock
2012/10/05 22:03:26
I had that, but I'm just calling it from the test
|
| + |
| + // A counter used to assign unique IDs to web intents invocations in this |
| + // renderer. |
| + int id_counter_; |
| + |
| + // Map tracking registered Web Intent requests by assigned ID numbers to |
| + // correctly route any return data. |
| + std::map<int, WebKit::WebIntentRequest> intent_requests_; |
| + |
| // Delivered intent data from the caller. |
| scoped_ptr<webkit_glue::WebIntentData> intent_; |