[chromium-style] destructors of ref-counted objects should be private
This commit is contained in:
parent
e6695cf2ec
commit
6c26bb1cf8
5 changed files with 8 additions and 5 deletions
|
@ -18,7 +18,6 @@ namespace atom {
|
|||
class UvTaskRunner : public base::SingleThreadTaskRunner {
|
||||
public:
|
||||
explicit UvTaskRunner(uv_loop_t* loop);
|
||||
~UvTaskRunner() override;
|
||||
|
||||
// base::SingleThreadTaskRunner:
|
||||
bool PostDelayedTask(const base::Location& from_here,
|
||||
|
@ -30,6 +29,7 @@ class UvTaskRunner : public base::SingleThreadTaskRunner {
|
|||
base::TimeDelta delay) override;
|
||||
|
||||
private:
|
||||
~UvTaskRunner() override;
|
||||
static void OnTimeout(uv_timer_t* timer);
|
||||
static void OnClose(uv_handle_t* handle);
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ namespace atom {
|
|||
class AtomAccessTokenStore : public device::AccessTokenStore {
|
||||
public:
|
||||
AtomAccessTokenStore() = default;
|
||||
~AtomAccessTokenStore() = default;
|
||||
|
||||
// device::AccessTokenStore:
|
||||
void LoadAccessTokens(const LoadAccessTokensCallback& callback) override {}
|
||||
|
@ -20,6 +19,7 @@ class AtomAccessTokenStore : public device::AccessTokenStore {
|
|||
const base::string16& access_token) override {}
|
||||
|
||||
private:
|
||||
~AtomAccessTokenStore() override = default;
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomAccessTokenStore);
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ class AtomQuotaPermissionContext : public content::QuotaPermissionContext {
|
|||
typedef content::QuotaPermissionContext::QuotaPermissionResponse response;
|
||||
|
||||
AtomQuotaPermissionContext();
|
||||
virtual ~AtomQuotaPermissionContext();
|
||||
|
||||
// content::QuotaPermissionContext:
|
||||
void RequestQuotaPermission(const content::StorageQuotaParams& params,
|
||||
|
@ -22,6 +21,8 @@ class AtomQuotaPermissionContext : public content::QuotaPermissionContext {
|
|||
const PermissionCallback& callback) override;
|
||||
|
||||
private:
|
||||
~AtomQuotaPermissionContext() override;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomQuotaPermissionContext);
|
||||
};
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace atom {
|
|||
class BridgeTaskRunner : public base::SingleThreadTaskRunner {
|
||||
public:
|
||||
BridgeTaskRunner() {}
|
||||
~BridgeTaskRunner() override {}
|
||||
|
||||
// Called when message loop is ready.
|
||||
void MessageLoopIsReady();
|
||||
|
@ -36,6 +35,8 @@ class BridgeTaskRunner : public base::SingleThreadTaskRunner {
|
|||
private:
|
||||
using TaskPair =
|
||||
std::tuple<base::Location, base::OnceClosure, base::TimeDelta>;
|
||||
~BridgeTaskRunner() override {}
|
||||
|
||||
std::vector<TaskPair> tasks_;
|
||||
std::vector<TaskPair> non_nestable_tasks_;
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
|
|||
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
|
||||
content::ProtocolHandlerMap* protocol_handlers,
|
||||
content::URLRequestInterceptorScopedVector protocol_interceptors);
|
||||
~URLRequestContextGetter() override;
|
||||
|
||||
// net::CookieStore::CookieChangedCallback implementation.
|
||||
void OnCookieChanged(const net::CanonicalCookie& cookie,
|
||||
|
@ -90,6 +89,8 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
|
|||
void NotifyContextShutdownOnIO();
|
||||
|
||||
private:
|
||||
~URLRequestContextGetter() override;
|
||||
|
||||
Delegate* delegate_;
|
||||
|
||||
NetLog* net_log_;
|
||||
|
|
Loading…
Reference in a new issue