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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h

Issue 2247493003: [Mac] Clean up SadTabView and let SadTabController provide its content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 base::scoped_nsobject<SadTabController> sad_tab_controller_; 31 base::scoped_nsobject<SadTabController> sad_tab_controller_;
32 32
33 content::WebContents* web_contents_; 33 content::WebContents* web_contents_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(SadTabCocoa); 35 DISALLOW_COPY_AND_ASSIGN(SadTabCocoa);
36 }; 36 };
37 37
38 } // namespace chrome 38 } // namespace chrome
39 39
40 // A controller class that manages the SadTabView (aka "Aw Snap" or crash page). 40 // A controller class that manages the SadTabView (aka "Aw Snap" or crash page).
41 @interface SadTabController : NSViewController { 41 @interface SadTabController : NSViewController
42 @private
43 content::WebContents* webContents_; // Weak reference.
44 base::scoped_nsobject<SadTabView> sadTabView_;
45 }
46 42
47 // Designated initializer. 43 // Designated initializer.
48 - (id)initWithWebContents:(content::WebContents*)webContents; 44 - (id)initWithWebContents:(content::WebContents*)webContents;
49 45
50 // Returns a weak reference to the WebContents whose WebContentsView created 46 // Returns a weak reference to the WebContents whose WebContentsView created
51 // this SadTabController. 47 // this SadTabController.
52 - (content::WebContents*)webContents; 48 - (content::WebContents*)webContents;
53 49
54 @end 50 @end
55 51
56 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ 52 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698