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

Side by Side Diff: ui/snapshot/screenshot_grabber.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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
« no previous file with comments | « ui/shell_dialogs/select_file_dialog.h ('k') | ui/snapshot/snapshot_android.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_SNAPSHOT_SCREENSHOT_GRABBER_H_ 5 #ifndef UI_SNAPSHOT_SCREENSHOT_GRABBER_H_
6 #define UI_SNAPSHOT_SCREENSHOT_GRABBER_H_ 6 #define UI_SNAPSHOT_SCREENSHOT_GRABBER_H_
7 7
8 #include <memory>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/ref_counted_memory.h" 14 #include "base/memory/ref_counted_memory.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 16 #include "base/observer_list.h"
16 #include "base/time/time.h" 17 #include "base/time/time.h"
17 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
19 #include "ui/snapshot/screenshot_grabber_observer.h" 20 #include "ui/snapshot/screenshot_grabber_observer.h"
20 #include "ui/snapshot/snapshot_export.h" 21 #include "ui/snapshot/snapshot_export.h"
21 22
22 namespace base { 23 namespace base {
23 class TaskRunner; 24 class TaskRunner;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 93
93 base::ObserverList<ScreenshotGrabberObserver> observers_; 94 base::ObserverList<ScreenshotGrabberObserver> observers_;
94 base::WeakPtrFactory<ScreenshotGrabber> factory_; 95 base::WeakPtrFactory<ScreenshotGrabber> factory_;
95 96
96 DISALLOW_COPY_AND_ASSIGN(ScreenshotGrabber); 97 DISALLOW_COPY_AND_ASSIGN(ScreenshotGrabber);
97 }; 98 };
98 99
99 } // namespace ui 100 } // namespace ui
100 101
101 #endif // UI_SNAPSHOT_SCREENSHOT_GRABBER_H_ 102 #endif // UI_SNAPSHOT_SCREENSHOT_GRABBER_H_
OLDNEW
« no previous file with comments | « ui/shell_dialogs/select_file_dialog.h ('k') | ui/snapshot/snapshot_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698