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

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

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make FakeProfile class happy Created 6 years, 11 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('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) 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 int active_match_ordinal, 384 int active_match_ordinal,
385 bool final_update) {} 385 bool final_update) {}
386 386
387 #if defined(OS_ANDROID) 387 #if defined(OS_ANDROID)
388 // Provides the rects of the current find-in-page matches. 388 // Provides the rects of the current find-in-page matches.
389 // Sent as a reply to RequestFindMatchRects. 389 // Sent as a reply to RequestFindMatchRects.
390 virtual void FindMatchRectsReply(WebContents* web_contents, 390 virtual void FindMatchRectsReply(WebContents* web_contents,
391 int version, 391 int version,
392 const std::vector<gfx::RectF>& rects, 392 const std::vector<gfx::RectF>& rects,
393 const gfx::RectF& active_rect) {} 393 const gfx::RectF& active_rect) {}
394
395 // Request permission to access protected media identifier. The callback will
396 // tell whether it's allowed.
397 virtual void RequestProtectedMediaIdentifierPermission(
398 const WebContents* web_contents,
399 const GURL& frame_url,
400 const base::Callback<void(bool)>& callback) {}
401 #endif 394 #endif
402 395
403 // Invoked when the preferred size of the contents has been changed. 396 // Invoked when the preferred size of the contents has been changed.
404 virtual void UpdatePreferredSize(WebContents* web_contents, 397 virtual void UpdatePreferredSize(WebContents* web_contents,
405 const gfx::Size& pref_size) {} 398 const gfx::Size& pref_size) {}
406 399
407 // Invoked when the contents auto-resized and the container should match it. 400 // Invoked when the contents auto-resized and the container should match it.
408 virtual void ResizeDueToAutoResize(WebContents* web_contents, 401 virtual void ResizeDueToAutoResize(WebContents* web_contents,
409 const gfx::Size& new_size) {} 402 const gfx::Size& new_size) {}
410 403
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // Called when |this| is no longer the WebContentsDelegate for |source|. 472 // Called when |this| is no longer the WebContentsDelegate for |source|.
480 void Detach(WebContents* source); 473 void Detach(WebContents* source);
481 474
482 // The WebContents that this is currently a delegate for. 475 // The WebContents that this is currently a delegate for.
483 std::set<WebContents*> attached_contents_; 476 std::set<WebContents*> attached_contents_;
484 }; 477 };
485 478
486 } // namespace content 479 } // namespace content
487 480
488 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 481 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698