OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/intents/internal_web_intents_dispatcher.h" | 5 #include "content/browser/intents/internal_web_intents_dispatcher.h" |
6 | 6 |
7 #include "content/browser/intents/intent_injector.h" | 7 #include "content/browser/intents/intent_injector.h" |
8 #include "content/public/browser/web_contents.h" | |
9 #include "content/public/browser/web_contents_delegate.h" | |
8 #include "webkit/glue/web_intent_data.h" | 10 #include "webkit/glue/web_intent_data.h" |
9 #include "webkit/glue/web_intent_reply_data.h" | 11 #include "webkit/glue/web_intent_reply_data.h" |
10 | 12 |
11 using content::WebContents; | 13 using content::WebContents; |
12 | 14 |
13 InternalWebIntentsDispatcher::InternalWebIntentsDispatcher( | 15 InternalWebIntentsDispatcher::InternalWebIntentsDispatcher( |
14 const webkit_glue::WebIntentData& intent) | 16 const webkit_glue::WebIntentData& intent) |
15 : intent_(intent), | 17 : intent_(intent), |
16 intent_injector_(NULL) {} | 18 intent_injector_(NULL) {} |
17 | 19 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 if (!reply_callback_.is_null()) | 52 if (!reply_callback_.is_null()) |
51 reply_callback_.Run(reply_type, data); | 53 reply_callback_.Run(reply_type, data); |
52 | 54 |
53 delete this; | 55 delete this; |
54 } | 56 } |
55 | 57 |
56 void InternalWebIntentsDispatcher::RegisterReplyNotification( | 58 void InternalWebIntentsDispatcher::RegisterReplyNotification( |
57 const content::WebIntentsDispatcher::ReplyNotification& closure) { | 59 const content::WebIntentsDispatcher::ReplyNotification& closure) { |
58 reply_notifiers_.push_back(closure); | 60 reply_notifiers_.push_back(closure); |
59 } | 61 } |
62 | |
63 namespace content { | |
64 | |
65 content::WebIntentsDispatcher* WebIntentsDispatcher::Create( | |
jam
2012/03/29 17:59:19
nit: by convention we put this in the to of the fi
Greg Billock
2012/03/29 18:45:08
I can't put an impl file in the public/browser dir
jam
2012/03/30 16:09:44
I meant in the impl file in content\browser, i.e.
jam
2012/04/02 15:05:08
ping?
Greg Billock
2012/04/02 16:15:03
Done.
| |
66 const webkit_glue::WebIntentData& data) { | |
67 return new InternalWebIntentsDispatcher(data); | |
68 } | |
69 | |
70 } // namespace content | |
OLD | NEW |