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

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 10069054: RefCounted types should not have public destructors, content/ remaining bits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to Trunk Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/speech_recognizer.h ('k') | content/shell/shell_login_dialog.h » ('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 (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 #include "content/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 21 matching lines...) Expand all
32 32
33 namespace { 33 namespace {
34 34
35 #if defined(OS_LINUX) 35 #if defined(OS_LINUX)
36 const char kDotConfigDir[] = ".config"; 36 const char kDotConfigDir[] = ".config";
37 const char kXdgConfigHomeEnvVar[] = "XDG_CONFIG_HOME"; 37 const char kXdgConfigHomeEnvVar[] = "XDG_CONFIG_HOME";
38 #endif 38 #endif
39 39
40 class ShellGeolocationPermissionContext : public GeolocationPermissionContext { 40 class ShellGeolocationPermissionContext : public GeolocationPermissionContext {
41 public: 41 public:
42 ShellGeolocationPermissionContext() { 42 ShellGeolocationPermissionContext() {}
43 }
44 43
45 // GeolocationPermissionContext implementation). 44 // GeolocationPermissionContext implementation).
46 virtual void RequestGeolocationPermission( 45 virtual void RequestGeolocationPermission(
47 int render_process_id, 46 int render_process_id,
48 int render_view_id, 47 int render_view_id,
49 int bridge_id, 48 int bridge_id,
50 const GURL& requesting_frame, 49 const GURL& requesting_frame,
51 base::Callback<void(bool)> callback) OVERRIDE { 50 base::Callback<void(bool)> callback) OVERRIDE {
52 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
53 } 52 }
54 53
55 virtual void CancelGeolocationPermissionRequest( 54 virtual void CancelGeolocationPermissionRequest(
56 int render_process_id, 55 int render_process_id,
57 int render_view_id, 56 int render_view_id,
58 int bridge_id, 57 int bridge_id,
59 const GURL& requesting_frame) OVERRIDE { 58 const GURL& requesting_frame) OVERRIDE {
60 NOTIMPLEMENTED(); 59 NOTIMPLEMENTED();
61 } 60 }
62 61
62 protected:
63 virtual ~ShellGeolocationPermissionContext() {};
64
63 private: 65 private:
64 DISALLOW_COPY_AND_ASSIGN(ShellGeolocationPermissionContext); 66 DISALLOW_COPY_AND_ASSIGN(ShellGeolocationPermissionContext);
65 }; 67 };
66 68
67 class ShellSpeechRecognitionPreferences : public SpeechRecognitionPreferences { 69 class ShellSpeechRecognitionPreferences : public SpeechRecognitionPreferences {
68 public: 70 public:
69 ShellSpeechRecognitionPreferences() { 71 ShellSpeechRecognitionPreferences() {}
70 }
71 72
72 // Overridden from SpeechRecognitionPreferences: 73 // Overridden from SpeechRecognitionPreferences:
73 virtual bool FilterProfanities() const OVERRIDE { 74 virtual bool FilterProfanities() const OVERRIDE {
74 return false; 75 return false;
75 } 76 }
76 77
77 virtual void SetFilterProfanities(bool filter_profanities) OVERRIDE { 78 virtual void SetFilterProfanities(bool filter_profanities) OVERRIDE {}
78 } 79
80 protected:
81 virtual ~ShellSpeechRecognitionPreferences() {}
79 82
80 private: 83 private:
81 DISALLOW_COPY_AND_ASSIGN(ShellSpeechRecognitionPreferences); 84 DISALLOW_COPY_AND_ASSIGN(ShellSpeechRecognitionPreferences);
82 }; 85 };
83 86
84 } // namespace 87 } // namespace
85 88
86 ShellBrowserContext::ShellBrowserContext() { 89 ShellBrowserContext::ShellBrowserContext() {
87 InitWhileIOAllowed(); 90 InitWhileIOAllowed();
88 } 91 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 184
182 bool ShellBrowserContext::DidLastSessionExitCleanly() { 185 bool ShellBrowserContext::DidLastSessionExitCleanly() {
183 return true; 186 return true;
184 } 187 }
185 188
186 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 189 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
187 return NULL; 190 return NULL;
188 } 191 }
189 192
190 } // namespace content 193 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/speech_recognizer.h ('k') | content/shell/shell_login_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698