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

Side by Side Diff: chrome/browser/ui/screen_capture_notification_ui.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ 5 #ifndef CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_
6 #define CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ 6 #define CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "content/public/common/media_stream_request.h" 10 #include "content/public/common/media_stream_request.h"
11 11
12 // Interface for screen capture notification UI shown when content of the screen 12 // Interface for screen capture notification UI shown when content of the screen
13 // is being captured. 13 // is being captured.
14 class ScreenCaptureNotificationUI : public content::MediaStreamUI { 14 class ScreenCaptureNotificationUI : public content::MediaStreamUI {
15 public: 15 public:
16 ~ScreenCaptureNotificationUI() override {} 16 ~ScreenCaptureNotificationUI() override {}
17 17
18 // Creates platform-specific screen capture notification UI. |text| specifies 18 // Creates platform-specific screen capture notification UI. |text| specifies
19 // the text that should be shown in the notification. 19 // the text that should be shown in the notification.
20 static scoped_ptr<ScreenCaptureNotificationUI> Create( 20 static std::unique_ptr<ScreenCaptureNotificationUI> Create(
21 const base::string16& text); 21 const base::string16& text);
22 }; 22 };
23 23
24 #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ 24 #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/sad_tab_helper.h ('k') | chrome/browser/ui/screen_capture_notification_ui_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698