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

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

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Add a test for the current url API Created 4 years, 1 month 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 struct Referrer; 53 struct Referrer;
54 struct SecurityStyleExplanations; 54 struct SecurityStyleExplanations;
55 } // namespace content 55 } // namespace content
56 56
57 namespace gfx { 57 namespace gfx {
58 class Point; 58 class Point;
59 class Rect; 59 class Rect;
60 class Size; 60 class Size;
61 } 61 }
62 62
63 namespace rappor {
64 class RapporService;
65 }
66
63 namespace net { 67 namespace net {
64 class X509Certificate; 68 class X509Certificate;
65 } 69 }
66 70
67 namespace blink { 71 namespace blink {
68 class WebGestureEvent; 72 class WebGestureEvent;
69 } 73 }
70 74
71 namespace content { 75 namespace content {
72 class RenderWidgetHost; 76 class RenderWidgetHost;
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 532
529 // Called when the active render widget is forwarding a RemoteChannel 533 // Called when the active render widget is forwarding a RemoteChannel
530 // compositor proto. This is used in Blimp mode. 534 // compositor proto. This is used in Blimp mode.
531 virtual void ForwardCompositorProto( 535 virtual void ForwardCompositorProto(
532 RenderWidgetHost* render_widget_host, 536 RenderWidgetHost* render_widget_host,
533 const std::vector<uint8_t>& proto) {} 537 const std::vector<uint8_t>& proto) {}
534 538
535 // Requests the app banner. This method is called from the DevTools. 539 // Requests the app banner. This method is called from the DevTools.
536 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents); 540 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents);
537 541
542 virtual ::rappor::RapporService* getRapporService();
Charlie Reis 2016/11/16 23:55:22 nit: All methods in content/public should be docum
ncarter (slow) 2016/11/17 20:39:12 If we expose the full rappor API to content, GetRa
Navid Zolghadr 2016/12/01 18:27:15 I removed this API from here and wen with the //co
543
538 protected: 544 protected:
539 virtual ~WebContentsDelegate(); 545 virtual ~WebContentsDelegate();
540 546
541 private: 547 private:
542 friend class WebContentsImpl; 548 friend class WebContentsImpl;
543 549
544 // Called when |this| becomes the WebContentsDelegate for |source|. 550 // Called when |this| becomes the WebContentsDelegate for |source|.
545 void Attach(WebContents* source); 551 void Attach(WebContents* source);
546 552
547 // Called when |this| is no longer the WebContentsDelegate for |source|. 553 // Called when |this| is no longer the WebContentsDelegate for |source|.
548 void Detach(WebContents* source); 554 void Detach(WebContents* source);
549 555
550 // The WebContents that this is currently a delegate for. 556 // The WebContents that this is currently a delegate for.
551 std::set<WebContents*> attached_contents_; 557 std::set<WebContents*> attached_contents_;
552 }; 558 };
553 559
554 } // namespace content 560 } // namespace content
555 561
556 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 562 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698