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

Side by Side Diff: chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.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 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 CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_OTR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_OTR_DELEGATE_H_
6 #define CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_OTR_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_OTR_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 17 matching lines...) Expand all
28 void InitHostZoomMap(content::HostZoomMap* host_zoom_map) override; 28 void InitHostZoomMap(content::HostZoomMap* host_zoom_map) override;
29 29
30 private: 30 private:
31 // This is a callback function that receives notifications from HostZoomMap 31 // This is a callback function that receives notifications from HostZoomMap
32 // when per-host zoom levels change. It is used to update the per-host 32 // when per-host zoom levels change. It is used to update the per-host
33 // zoom levels (if any) managed by this class (for its associated partition). 33 // zoom levels (if any) managed by this class (for its associated partition).
34 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change); 34 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change);
35 35
36 base::WeakPtr<ui_zoom::ZoomEventManager> zoom_event_manager_; 36 base::WeakPtr<ui_zoom::ZoomEventManager> zoom_event_manager_;
37 content::HostZoomMap* host_zoom_map_; 37 content::HostZoomMap* host_zoom_map_;
38 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; 38 std::unique_ptr<content::HostZoomMap::Subscription> zoom_subscription_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(ChromeZoomLevelOTRDelegate); 40 DISALLOW_COPY_AND_ASSIGN(ChromeZoomLevelOTRDelegate);
41 }; 41 };
42 42
43 #endif // CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_OTR_DELEGATE_H_ 43 #endif // CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_OTR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer_common_unittest.cc ('k') | chrome/browser/ui/zoom/chrome_zoom_level_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698