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

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

Issue 948293002: Add RAPPOR metrics of ServiceWorker.ControlledPage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated nasko's comment Created 5 years, 10 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_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( 619 virtual PresentationServiceDelegate* GetPresentationServiceDelegate(
620 WebContents* web_contents); 620 WebContents* web_contents);
621 621
622 // Allows programmatic opening of a new tab/window without going through 622 // Allows programmatic opening of a new tab/window without going through
623 // another WebContents. For example, from a Worker. |callback| will be 623 // another WebContents. For example, from a Worker. |callback| will be
624 // invoked with the appropriate WebContents* when available. 624 // invoked with the appropriate WebContents* when available.
625 virtual void OpenURL(BrowserContext* browser_context, 625 virtual void OpenURL(BrowserContext* browser_context,
626 const OpenURLParams& params, 626 const OpenURLParams& params,
627 const base::Callback<void(WebContents*)>& callback); 627 const base::Callback<void(WebContents*)>& callback);
628 628
629 // Allows the embedder to record |metric| for a specific |url|.
630 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {}
631
629 #if defined(OS_POSIX) && !defined(OS_MACOSX) 632 #if defined(OS_POSIX) && !defined(OS_MACOSX)
630 // Populates |mappings| with all files that need to be mapped before launching 633 // Populates |mappings| with all files that need to be mapped before launching
631 // a child process. 634 // a child process.
632 virtual void GetAdditionalMappedFilesForChildProcess( 635 virtual void GetAdditionalMappedFilesForChildProcess(
633 const base::CommandLine& command_line, 636 const base::CommandLine& command_line,
634 int child_process_id, 637 int child_process_id,
635 FileDescriptorInfo* mappings) {} 638 FileDescriptorInfo* mappings) {}
636 #endif 639 #endif
637 640
638 #if defined(OS_WIN) 641 #if defined(OS_WIN)
(...skipping 11 matching lines...) Expand all
650 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
651 // implementation. Return nullptr to disable external surface video. 654 // implementation. Return nullptr to disable external surface video.
652 virtual ExternalVideoSurfaceContainer* 655 virtual ExternalVideoSurfaceContainer*
653 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
654 #endif 657 #endif
655 }; 658 };
656 659
657 } // namespace content 660 } // namespace content
658 661
659 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_metrics.cc ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698