Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: content/renderer/web_intents_host.h

Issue 8934011: Rename IntentsHost -> WebIntentsDispatcher and IntentsDispatcher -> WebIntentsHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/web_intents_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_RENDERER_INTENTS_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_WEB_INTENTS_HOST_H_
6 #define CONTENT_RENDERER_INTENTS_DISPATCHER_H_ 6 #define CONTENT_RENDERER_WEB_INTENTS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
12 #include "webkit/glue/web_intent_data.h" 12 #include "webkit/glue/web_intent_data.h"
13 #include "webkit/glue/web_intent_reply_data.h" 13 #include "webkit/glue/web_intent_reply_data.h"
14 14
15 class RenderViewImpl; 15 class RenderViewImpl;
16 16
17 namespace WebKit { 17 namespace WebKit {
18 class WebFrame; 18 class WebFrame;
19 } 19 }
20 20
21 namespace webkit_glue { 21 namespace webkit_glue {
22 struct WebIntentData; 22 struct WebIntentData;
23 } 23 }
24 24
25 // IntentsDispatcher is a delegate for Web Intents messages. It is the 25 // WebIntentsHost is a delegate for Web Intents messages. It is the
26 // renderer-side handler for IPC messages delivering the intent payload data 26 // renderer-side handler for IPC messages delivering the intent payload data
27 // and preparing it for access by the service page. 27 // and preparing it for access by the service page.
28 class IntentsDispatcher : public content::RenderViewObserver { 28 class WebIntentsHost : public content::RenderViewObserver {
29 public: 29 public:
30 // |render_view| must not be NULL. 30 // |render_view| must not be NULL.
31 explicit IntentsDispatcher(RenderViewImpl* render_view); 31 explicit WebIntentsHost(RenderViewImpl* render_view);
32 virtual ~IntentsDispatcher(); 32 virtual ~WebIntentsHost();
33 33
34 // Called by the bound intent object to register the result from the service 34 // Called by the bound intent object to register the result from the service
35 // page. 35 // page.
36 void OnResult(const WebKit::WebString& data); 36 void OnResult(const WebKit::WebString& data);
37 void OnFailure(const WebKit::WebString& data); 37 void OnFailure(const WebKit::WebString& data);
38 38
39 private: 39 private:
40 class BoundDeliveredIntent; 40 class BoundDeliveredIntent;
41 41
42 // RenderView::Observer implementation. 42 // RenderView::Observer implementation.
(...skipping 13 matching lines...) Expand all
56 const WebKit::WebString& data, 56 const WebKit::WebString& data,
57 int intent_id); 57 int intent_id);
58 58
59 // Delivered intent data from the caller. 59 // Delivered intent data from the caller.
60 scoped_ptr<webkit_glue::WebIntentData> intent_; 60 scoped_ptr<webkit_glue::WebIntentData> intent_;
61 61
62 // Representation of the intent data as a C++ bound NPAPI object to be 62 // Representation of the intent data as a C++ bound NPAPI object to be
63 // injected into the Javascript context. 63 // injected into the Javascript context.
64 scoped_ptr<BoundDeliveredIntent> delivered_intent_; 64 scoped_ptr<BoundDeliveredIntent> delivered_intent_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(IntentsDispatcher); 66 DISALLOW_COPY_AND_ASSIGN(WebIntentsHost);
67 }; 67 };
68 68
69 #endif // CONTENT_RENDERER_INTENTS_DISPATCHER_H_ 69 #endif // CONTENT_RENDERER_WEB_INTENTS_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/web_intents_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698