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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

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
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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/browser/javascript_dialogs.h" 10 #include "content/browser/javascript_dialogs.h"
11 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/public/browser/intents_host.h"
13 #include "content/public/browser/notification_service.h" 12 #include "content/public/browser/notification_service.h"
14 #include "content/public/browser/notification_types.h" 13 #include "content/public/browser/notification_types.h"
14 #include "content/public/browser/web_intents_dispatcher.h"
15 #include "content/public/common/url_constants.h" 15 #include "content/public/common/url_constants.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 #include "webkit/glue/web_intent_data.h" 17 #include "webkit/glue/web_intent_data.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 WebContentsDelegate::WebContentsDelegate() { 21 WebContentsDelegate::WebContentsDelegate() {
22 } 22 }
23 23
24 TabContents* WebContentsDelegate::OpenURLFromTab(TabContents* source, 24 TabContents* WebContentsDelegate::OpenURLFromTab(TabContents* source,
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 void WebContentsDelegate::RegisterIntentHandler(TabContents* tab, 297 void WebContentsDelegate::RegisterIntentHandler(TabContents* tab,
298 const string16& action, 298 const string16& action,
299 const string16& type, 299 const string16& type,
300 const string16& href, 300 const string16& href,
301 const string16& title, 301 const string16& title,
302 const string16& disposition) { 302 const string16& disposition) {
303 } 303 }
304 304
305 void WebContentsDelegate::WebIntentDispatch( 305 void WebContentsDelegate::WebIntentDispatch(
306 TabContents* tab, 306 TabContents* tab,
307 content::IntentsHost* intents_host) { 307 content::WebIntentsDispatcher* intents_dispatcher) {
308 // The caller passes this method ownership of the |intents_host|, but this 308 // The caller passes this method ownership of the |intents_dispatcher|, but
309 // empty implementation will not use it, so we delete it immediately. 309 // this empty implementation will not use it, so we delete it immediately.
310 delete intents_host; 310 delete intents_dispatcher;
311 } 311 }
312 312
313 void WebContentsDelegate::FindReply(TabContents* tab, 313 void WebContentsDelegate::FindReply(TabContents* tab,
314 int request_id, 314 int request_id,
315 int number_of_matches, 315 int number_of_matches,
316 const gfx::Rect& selection_rect, 316 const gfx::Rect& selection_rect,
317 int active_match_ordinal, 317 int active_match_ordinal,
318 bool final_update) { 318 bool final_update) {
319 } 319 }
320 320
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); 354 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end());
355 attached_contents_.insert(tab_contents); 355 attached_contents_.insert(tab_contents);
356 } 356 }
357 357
358 void WebContentsDelegate::Detach(TabContents* tab_contents) { 358 void WebContentsDelegate::Detach(TabContents* tab_contents) {
359 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); 359 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
360 attached_contents_.erase(tab_contents); 360 attached_contents_.erase(tab_contents);
361 } 361 }
362 362
363 } // namespace content 363 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/public/browser/web_intents_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698