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

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

Issue 368243009: Implement unregisterProtocolHandler() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged content changes Created 6 years, 5 months 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
OLDNEW
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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 const WebContents* web_contents) const; 372 const WebContents* web_contents) const;
373 373
374 // Register a new handler for URL requests with the given scheme. 374 // Register a new handler for URL requests with the given scheme.
375 // |user_gesture| is true if the registration is made in the context of a user 375 // |user_gesture| is true if the registration is made in the context of a user
376 // gesture. 376 // gesture.
377 virtual void RegisterProtocolHandler(WebContents* web_contents, 377 virtual void RegisterProtocolHandler(WebContents* web_contents,
378 const std::string& protocol, 378 const std::string& protocol,
379 const GURL& url, 379 const GURL& url,
380 bool user_gesture) {} 380 bool user_gesture) {}
381 381
382 // Unregister the registered handler for URL requests with the given scheme.
383 // |user_gesture| is true if the registration is made in the context of a user
384 // gesture.
385 virtual void UnregisterProtocolHandler(WebContents* web_contents,
386 const std::string& protocol,
387 const GURL& url,
388 bool user_gesture) {}
389
382 // Result of string search in the page. This includes the number of matches 390 // Result of string search in the page. This includes the number of matches
383 // found and the selection rect (in screen coordinates) for the string found. 391 // found and the selection rect (in screen coordinates) for the string found.
384 // If |final_update| is false, it indicates that more results follow. 392 // If |final_update| is false, it indicates that more results follow.
385 virtual void FindReply(WebContents* web_contents, 393 virtual void FindReply(WebContents* web_contents,
386 int request_id, 394 int request_id,
387 int number_of_matches, 395 int number_of_matches,
388 const gfx::Rect& selection_rect, 396 const gfx::Rect& selection_rect,
389 int active_match_ordinal, 397 int active_match_ordinal,
390 bool final_update) {} 398 bool final_update) {}
391 399
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // Called when |this| is no longer the WebContentsDelegate for |source|. 487 // Called when |this| is no longer the WebContentsDelegate for |source|.
480 void Detach(WebContents* source); 488 void Detach(WebContents* source);
481 489
482 // The WebContents that this is currently a delegate for. 490 // The WebContents that this is currently a delegate for.
483 std::set<WebContents*> attached_contents_; 491 std::set<WebContents*> attached_contents_;
484 }; 492 };
485 493
486 } // namespace content 494 } // namespace content
487 495
488 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 496 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698