Commit d2f05d07 authored by erg@google.com's avatar erg@google.com

Part 1 of repairing regressions to my old clang check plugins so Nico can

deploy the clang plugins to the waterfall/trybots.

BUG=none
TEST=compiles

Review URL: http://codereview.chromium.org/6366019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72846 0039d316-1c4b-4281-b951-d872f2087c98
parent c3dd6dad
...@@ -425,6 +425,8 @@ bool HistoryURLProvider::PromoteMatchForInlineAutocomplete( ...@@ -425,6 +425,8 @@ bool HistoryURLProvider::PromoteMatchForInlineAutocomplete(
return true; return true;
} }
HistoryURLProvider::~HistoryURLProvider() {}
// static // static
history::Prefixes HistoryURLProvider::GetPrefixes() { history::Prefixes HistoryURLProvider::GetPrefixes() {
// We'll complete text following these prefixes. // We'll complete text following these prefixes.
......
...@@ -175,7 +175,7 @@ class HistoryURLProvider : public HistoryProvider { ...@@ -175,7 +175,7 @@ class HistoryURLProvider : public HistoryProvider {
void QueryComplete(HistoryURLProviderParams* params_gets_deleted); void QueryComplete(HistoryURLProviderParams* params_gets_deleted);
private: private:
~HistoryURLProvider() {} ~HistoryURLProvider();
// Returns the set of prefixes to use for prefixes_. // Returns the set of prefixes to use for prefixes_.
static history::Prefixes GetPrefixes(); static history::Prefixes GetPrefixes();
......
...@@ -15,6 +15,33 @@ ...@@ -15,6 +15,33 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo() {}
BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo(
const std::string& host,
const std::string& database_name,
const std::string& origin_identifier,
const std::string& description,
const std::string& origin,
int64 size,
base::Time last_modified)
: host(host),
database_name(database_name),
origin_identifier(origin_identifier),
description(description),
origin(origin),
size(size),
last_modified(last_modified) {
}
BrowsingDataDatabaseHelper::DatabaseInfo::~DatabaseInfo() {}
bool BrowsingDataDatabaseHelper::DatabaseInfo::IsFileSchemeData() {
return StartsWithASCII(origin_identifier,
std::string(chrome::kFileScheme),
true);
}
BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile) BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile)
: tracker_(profile->GetDatabaseTracker()), : tracker_(profile->GetDatabaseTracker()),
completion_callback_(NULL), completion_callback_(NULL),
......
...@@ -29,28 +29,17 @@ class BrowsingDataDatabaseHelper ...@@ -29,28 +29,17 @@ class BrowsingDataDatabaseHelper
public: public:
// Contains detailed information about a web database. // Contains detailed information about a web database.
struct DatabaseInfo { struct DatabaseInfo {
DatabaseInfo() {} DatabaseInfo();
DatabaseInfo(const std::string& host, DatabaseInfo(const std::string& host,
const std::string& database_name, const std::string& database_name,
const std::string& origin_identifier, const std::string& origin_identifier,
const std::string& description, const std::string& description,
const std::string& origin, const std::string& origin,
int64 size, int64 size,
base::Time last_modified) base::Time last_modified);
: host(host), ~DatabaseInfo();
database_name(database_name),
origin_identifier(origin_identifier), bool IsFileSchemeData();
description(description),
origin(origin),
size(size),
last_modified(last_modified) {
}
bool IsFileSchemeData() {
return StartsWithASCII(origin_identifier,
std::string(chrome::kFileScheme),
true);
}
std::string host; std::string host;
std::string database_name; std::string database_name;
......
...@@ -158,6 +158,27 @@ void BrowsingDataIndexedDBHelperImpl::DeleteIndexedDBFileInWebKitThread( ...@@ -158,6 +158,27 @@ void BrowsingDataIndexedDBHelperImpl::DeleteIndexedDBFileInWebKitThread(
} // namespace } // namespace
BrowsingDataIndexedDBHelper::IndexedDBInfo::IndexedDBInfo(
const std::string& protocol,
const std::string& host,
unsigned short port,
const std::string& database_identifier,
const std::string& origin,
const FilePath& file_path,
int64 size,
base::Time last_modified)
: protocol(protocol),
host(host),
port(port),
database_identifier(database_identifier),
origin(origin),
file_path(file_path),
size(size),
last_modified(last_modified) {
}
BrowsingDataIndexedDBHelper::IndexedDBInfo::~IndexedDBInfo() {}
// static // static
BrowsingDataIndexedDBHelper* BrowsingDataIndexedDBHelper::Create( BrowsingDataIndexedDBHelper* BrowsingDataIndexedDBHelper::Create(
Profile* profile) { Profile* profile) {
......
...@@ -37,16 +37,8 @@ class BrowsingDataIndexedDBHelper ...@@ -37,16 +37,8 @@ class BrowsingDataIndexedDBHelper
const std::string& origin, const std::string& origin,
const FilePath& file_path, const FilePath& file_path,
int64 size, int64 size,
base::Time last_modified) base::Time last_modified);
: protocol(protocol), ~IndexedDBInfo();
host(host),
port(port),
database_identifier(database_identifier),
origin(origin),
file_path(file_path),
size(size),
last_modified(last_modified) {
}
bool IsFileSchemeData() { bool IsFileSchemeData() {
return protocol == chrome::kFileScheme; return protocol == chrome::kFileScheme;
......
...@@ -80,7 +80,7 @@ class DevToolsClientHostImpl : public DevToolsClientHost { ...@@ -80,7 +80,7 @@ class DevToolsClientHostImpl : public DevToolsClientHost {
private: private:
// Message handling routines // Message handling routines
void OnDebuggerOutput(const std::string& msg); void OnDebuggerOutput(const std::string& msg);
void FrameNavigating(const std::string& url); virtual void FrameNavigating(const std::string& url);
void TabClosed(); void TabClosed();
int32 id_; int32 id_;
......
...@@ -22,6 +22,26 @@ using sync_pb::GetUpdatesCallerInfo; ...@@ -22,6 +22,26 @@ using sync_pb::GetUpdatesCallerInfo;
namespace s3 { namespace s3 {
struct SyncerThread::WaitInterval {
enum Mode {
// A wait interval whose duration has been affected by exponential
// backoff.
// EXPONENTIAL_BACKOFF intervals are nudge-rate limited to 1 per interval.
EXPONENTIAL_BACKOFF,
// A server-initiated throttled interval. We do not allow any syncing
// during such an interval.
THROTTLED,
};
Mode mode;
// This bool is set to true if we have observed a nudge during this
// interval and mode == EXPONENTIAL_BACKOFF.
bool had_nudge;
base::TimeDelta length;
base::OneShotTimer<SyncerThread> timer;
WaitInterval(Mode mode, base::TimeDelta length);
};
SyncerThread::DelayProvider::DelayProvider() {} SyncerThread::DelayProvider::DelayProvider() {}
SyncerThread::DelayProvider::~DelayProvider() {} SyncerThread::DelayProvider::~DelayProvider() {}
......
...@@ -84,25 +84,7 @@ class SyncerThread : public sessions::SyncSession::Delegate { ...@@ -84,25 +84,7 @@ class SyncerThread : public sessions::SyncSession::Delegate {
friend class SyncerThread2Test; friend class SyncerThread2Test;
// State pertaining to exponential backoff or throttling periods. // State pertaining to exponential backoff or throttling periods.
struct WaitInterval { struct WaitInterval;
enum Mode {
// A wait interval whose duration has been affected by exponential
// backoff.
// EXPONENTIAL_BACKOFF intervals are nudge-rate limited to 1 per interval.
EXPONENTIAL_BACKOFF,
// A server-initiated throttled interval. We do not allow any syncing
// during such an interval.
THROTTLED,
};
Mode mode;
// This bool is set to true if we have observed a nudge during this
// interval and mode == EXPONENTIAL_BACKOFF.
bool had_nudge;
base::TimeDelta length;
base::OneShotTimer<SyncerThread> timer;
WaitInterval(Mode mode, base::TimeDelta length);
};
// Internal state for every sync task that is scheduled. // Internal state for every sync task that is scheduled.
struct SyncSessionJob { struct SyncSessionJob {
......
...@@ -470,5 +470,12 @@ bool AutofillProfileModelAssociator::IsAbortPending() { ...@@ -470,5 +470,12 @@ bool AutofillProfileModelAssociator::IsAbortPending() {
return abort_association_pending_; return abort_association_pending_;
} }
AutofillProfileModelAssociator::DataBundle::DataBundle() {}
AutofillProfileModelAssociator::DataBundle::~DataBundle() {
STLDeleteElements(&new_profiles);
}
} // namespace browser_sync } // namespace browser_sync
...@@ -181,11 +181,13 @@ class AutofillProfileModelAssociator ...@@ -181,11 +181,13 @@ class AutofillProfileModelAssociator
}; };
struct AutofillProfileModelAssociator::DataBundle { struct AutofillProfileModelAssociator::DataBundle {
DataBundle();
~DataBundle();
std::set<std::string> current_profiles; std::set<std::string> current_profiles;
std::vector<std::string> profiles_to_delete; std::vector<std::string> profiles_to_delete;
std::vector<AutoFillProfile*> updated_profiles; std::vector<AutoFillProfile*> updated_profiles;
std::vector<AutoFillProfile*> new_profiles; // We own these pointers. std::vector<AutoFillProfile*> new_profiles; // We own these pointers.
~DataBundle() { STLDeleteElements(&new_profiles); }
}; };
} // namespace browser_sync } // namespace browser_sync
......
...@@ -80,6 +80,20 @@ int64 SessionModelAssociator::GetSyncIdFromSessionTag(const std::string& tag) { ...@@ -80,6 +80,20 @@ int64 SessionModelAssociator::GetSyncIdFromSessionTag(const std::string& tag) {
return sync_api::kInvalidId; return sync_api::kInvalidId;
return node.GetId(); return node.GetId();
} }
const TabContents*
SessionModelAssociator::GetChromeNodeFromSyncId(int64 sync_id) {
NOTREACHED();
return NULL;
}
bool SessionModelAssociator::InitSyncNodeFromChromeId(
const size_t& id,
sync_api::BaseNode* sync_node) {
NOTREACHED();
return false;
}
void SessionModelAssociator::ReassociateWindows(bool reload_tabs) { void SessionModelAssociator::ReassociateWindows(bool reload_tabs) {
DCHECK(CalledOnValidThread()); DCHECK(CalledOnValidThread());
sync_pb::SessionSpecifics specifics; sync_pb::SessionSpecifics specifics;
...@@ -692,6 +706,8 @@ SessionModelAssociator::TabNodePool::TabNodePool( ...@@ -692,6 +706,8 @@ SessionModelAssociator::TabNodePool::TabNodePool(
sync_service_(sync_service) { sync_service_(sync_service) {
} }
SessionModelAssociator::TabNodePool::~TabNodePool() {}
void SessionModelAssociator::TabNodePool::AddTabNode(int64 sync_id) { void SessionModelAssociator::TabNodePool::AddTabNode(int64 sync_id) {
tab_syncid_pool_.resize(tab_syncid_pool_.size() + 1); tab_syncid_pool_.resize(tab_syncid_pool_.size() + 1);
tab_syncid_pool_[static_cast<size_t>(++tab_pool_fp_)] = sync_id; tab_syncid_pool_[static_cast<size_t>(++tab_pool_fp_)] = sync_id;
......
...@@ -77,17 +77,11 @@ class SessionModelAssociator ...@@ -77,17 +77,11 @@ class SessionModelAssociator
virtual int64 GetSyncIdFromSessionTag(const std::string& tag); virtual int64 GetSyncIdFromSessionTag(const std::string& tag);
// Not used. // Not used.
virtual const TabContents* GetChromeNodeFromSyncId(int64 sync_id) { virtual const TabContents* GetChromeNodeFromSyncId(int64 sync_id);
NOTREACHED();
return NULL;
}
// Not used. // Not used.
bool InitSyncNodeFromChromeId(const size_t& id, virtual bool InitSyncNodeFromChromeId(const size_t& id,
sync_api::BaseNode* sync_node) { sync_api::BaseNode* sync_node);
NOTREACHED();
return false;
}
// Resync local window information. Updates the local sessions header node // Resync local window information. Updates the local sessions header node
// with the status of open windows and the order of tabs they contain. Should // with the status of open windows and the order of tabs they contain. Should
...@@ -224,6 +218,7 @@ class SessionModelAssociator ...@@ -224,6 +218,7 @@ class SessionModelAssociator
class TabNodePool { class TabNodePool {
public: public:
explicit TabNodePool(ProfileSyncService* sync_service); explicit TabNodePool(ProfileSyncService* sync_service);
~TabNodePool();
// Add a previously allocated tab sync node to our pool. Increases the size // Add a previously allocated tab sync node to our pool. Increases the size
// of tab_syncid_pool_ by one and marks the new tab node as free. // of tab_syncid_pool_ by one and marks the new tab node as free.
......
...@@ -491,6 +491,25 @@ void SyncBackendHost::Core::NotifyUpdatedToken(const std::string& token) { ...@@ -491,6 +491,25 @@ void SyncBackendHost::Core::NotifyUpdatedToken(const std::string& token) {
Details<const TokenAvailableDetails>(&details)); Details<const TokenAvailableDetails>(&details));
} }
SyncBackendHost::Core::DoInitializeOptions::DoInitializeOptions(
const GURL& service_url,
sync_api::HttpPostProviderFactory* http_bridge_factory,
const sync_api::SyncCredentials& credentials,
bool delete_sync_data_folder,
const notifier::NotifierOptions& notifier_options,
std::string restored_key_for_bootstrapping,
bool setup_for_test_mode)
: service_url(service_url),
http_bridge_factory(http_bridge_factory),
credentials(credentials),
delete_sync_data_folder(delete_sync_data_folder),
notifier_options(notifier_options),
restored_key_for_bootstrapping(restored_key_for_bootstrapping),
setup_for_test_mode(setup_for_test_mode) {
}
SyncBackendHost::Core::DoInitializeOptions::~DoInitializeOptions() {}
sync_api::UserShare* SyncBackendHost::GetUserShare() const { sync_api::UserShare* SyncBackendHost::GetUserShare() const {
DCHECK(syncapi_initialized_); DCHECK(syncapi_initialized_);
return core_->syncapi()->GetUserShare(); return core_->syncapi()->GetUserShare();
......
...@@ -268,14 +268,8 @@ class SyncBackendHost : public browser_sync::ModelSafeWorkerRegistrar { ...@@ -268,14 +268,8 @@ class SyncBackendHost : public browser_sync::ModelSafeWorkerRegistrar {
bool delete_sync_data_folder, bool delete_sync_data_folder,
const notifier::NotifierOptions& notifier_options, const notifier::NotifierOptions& notifier_options,
std::string restored_key_for_bootstrapping, std::string restored_key_for_bootstrapping,
bool setup_for_test_mode) bool setup_for_test_mode);
: service_url(service_url), ~DoInitializeOptions();
http_bridge_factory(http_bridge_factory),
credentials(credentials),
delete_sync_data_folder(delete_sync_data_folder),
notifier_options(notifier_options),
restored_key_for_bootstrapping(restored_key_for_bootstrapping),
setup_for_test_mode(setup_for_test_mode) {}
GURL service_url; GURL service_url;
sync_api::HttpPostProviderFactory* http_bridge_factory; sync_api::HttpPostProviderFactory* http_bridge_factory;
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/tab_contents/web_navigation_observer.h"
bool WebNavigationObserver::OnMessageReceived(const IPC::Message& message) {
return false;
}
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -27,7 +27,7 @@ class WebNavigationObserver : public IPC::Channel::Listener { ...@@ -27,7 +27,7 @@ class WebNavigationObserver : public IPC::Channel::Listener {
virtual void DidStopLoading() { } virtual void DidStopLoading() { }
// IPC::Channel::Listener implementation. // IPC::Channel::Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& message) { return false; } virtual bool OnMessageReceived(const IPC::Message& message);
#if 0 #if 0
// For unifying with delegate... // For unifying with delegate...
......
...@@ -2581,6 +2581,7 @@ ...@@ -2581,6 +2581,7 @@
'browser/tab_contents/web_drag_utils_win.h', 'browser/tab_contents/web_drag_utils_win.h',
'browser/tab_contents/web_drop_target_win.cc', 'browser/tab_contents/web_drop_target_win.cc',
'browser/tab_contents/web_drop_target_win.h', 'browser/tab_contents/web_drop_target_win.h',
'browser/tab_contents/web_navigation_observer.cc',
'browser/tab_contents/web_navigation_observer.h', 'browser/tab_contents/web_navigation_observer.h',
'browser/tabs/default_tab_handler.cc', 'browser/tabs/default_tab_handler.cc',
'browser/tabs/default_tab_handler.h', 'browser/tabs/default_tab_handler.h',
......
...@@ -331,6 +331,8 @@ ...@@ -331,6 +331,8 @@
'common/persistent_pref_store.h', 'common/persistent_pref_store.h',
'common/pref_store.cc', 'common/pref_store.cc',
'common/pref_store.h', 'common/pref_store.h',
'common/remoting/chromoting_host_info.cc',
'common/remoting/chromoting_host_info.h',
'common/render_messages.cc', 'common/render_messages.cc',
'common/render_messages.h', 'common/render_messages.h',
'common/render_messages_internal.h', 'common/render_messages_internal.h',
...@@ -506,6 +508,7 @@ ...@@ -506,6 +508,7 @@
'common/net/url_request_context_getter.h', 'common/net/url_request_context_getter.h',
'common/net/url_request_intercept_job.cc', 'common/net/url_request_intercept_job.cc',
'common/net/url_request_intercept_job.h', 'common/net/url_request_intercept_job.h',
'common/net/gaia/gaia_auth_consumer.cc',
'common/net/gaia/gaia_auth_consumer.h', 'common/net/gaia/gaia_auth_consumer.h',
'common/net/gaia/gaia_auth_fetcher.cc', 'common/net/gaia/gaia_auth_fetcher.cc',
'common/net/gaia/gaia_auth_fetcher.h', 'common/net/gaia/gaia_auth_fetcher.h',
......
...@@ -24,7 +24,7 @@ class AppCacheDispatcher : public IPC::Channel::Listener { ...@@ -24,7 +24,7 @@ class AppCacheDispatcher : public IPC::Channel::Listener {
AppCacheBackendProxy* backend_proxy() { return &backend_proxy_; } AppCacheBackendProxy* backend_proxy() { return &backend_proxy_; }
// IPC::Channel::Listener implementation // IPC::Channel::Listener implementation
bool OnMessageReceived(const IPC::Message& msg); virtual bool OnMessageReceived(const IPC::Message& msg);
private: private:
// Ipc message handlers // Ipc message handlers
......
...@@ -143,6 +143,16 @@ void ChildProcessHost::InstanceCreated() { ...@@ -143,6 +143,16 @@ void ChildProcessHost::InstanceCreated() {
Notify(NotificationType::CHILD_INSTANCE_CREATED); Notify(NotificationType::CHILD_INSTANCE_CREATED);
} }
bool ChildProcessHost::OnMessageReceived(const IPC::Message& msg) {
return false;
}
void ChildProcessHost::OnChannelConnected(int32 peer_pid) {
}
void ChildProcessHost::OnChannelError() {
}
bool ChildProcessHost::Send(IPC::Message* message) { bool ChildProcessHost::Send(IPC::Message* message) {
if (!channel_.get()) { if (!channel_.get()) {
delete message; delete message;
...@@ -155,6 +165,12 @@ void ChildProcessHost::OnChildDied() { ...@@ -155,6 +165,12 @@ void ChildProcessHost::OnChildDied() {
delete this; delete this;
} }
void ChildProcessHost::ShutdownStarted() {
}
void ChildProcessHost::Notify(NotificationType type) {
}
ChildProcessHost::ListenerHook::ListenerHook(ChildProcessHost* host) ChildProcessHost::ListenerHook::ListenerHook(ChildProcessHost* host)
: host_(host) { : host_(host) {
} }
......
...@@ -58,7 +58,7 @@ class ChildProcessHost : public IPC::Channel::Listener, ...@@ -58,7 +58,7 @@ class ChildProcessHost : public IPC::Channel::Listener,
#endif // defined(OS_WIN) #endif // defined(OS_WIN)
// IPC::Message::Sender implementation. // IPC::Message::Sender implementation.
bool Send(IPC::Message* message); virtual bool Send(IPC::Message* message);
protected: protected:
ChildProcessHost(); ChildProcessHost();
...@@ -80,9 +80,9 @@ class ChildProcessHost : public IPC::Channel::Listener, ...@@ -80,9 +80,9 @@ class ChildProcessHost : public IPC::Channel::Listener,
virtual void InstanceCreated(); virtual void InstanceCreated();
// IPC::Channel::Listener implementation: // IPC::Channel::Listener implementation:
virtual bool OnMessageReceived(const IPC::Message& msg) { return false; } virtual bool OnMessageReceived(const IPC::Message& msg);
virtual void OnChannelConnected(int32 peer_pid) { } virtual void OnChannelConnected(int32 peer_pid);
virtual void OnChannelError() { } virtual void OnChannelError();
bool opening_channel() { return opening_channel_; } bool opening_channel() { return opening_channel_; }
const std::string& channel_id() { return channel_id_; } const std::string& channel_id() { return channel_id_; }
...@@ -91,9 +91,9 @@ class ChildProcessHost : public IPC::Channel::Listener, ...@@ -91,9 +91,9 @@ class ChildProcessHost : public IPC::Channel::Listener,
// Called when the child process goes away. // Called when the child process goes away.
virtual void OnChildDied(); virtual void OnChildDied();
// Notifies the derived class that we told the child process to kill itself. // Notifies the derived class that we told the child process to kill itself.
virtual void ShutdownStarted() { } virtual void ShutdownStarted();
// Subclasses can implement specific notification methods. // Subclasses can implement specific notification methods.
virtual void Notify(NotificationType type) { } virtual void Notify(NotificationType type);
private: private:
// By using an internal class as the IPC::Channel::Listener, we can intercept // By using an internal class as the IPC::Channel::Listener, we can intercept
......
...@@ -168,6 +168,10 @@ bool ChildThread::OnMessageReceived(const IPC::Message& msg) { ...@@ -168,6 +168,10 @@ bool ChildThread::OnMessageReceived(const IPC::Message& msg) {
return router_.OnMessageReceived(msg); return router_.OnMessageReceived(msg);
} }
bool ChildThread::OnControlMessageReceived(const IPC::Message& msg) {
return false;
}
void ChildThread::OnAskBeforeShutdown() { void ChildThread::OnAskBeforeShutdown() {
check_with_browser_before_shutdown_ = true; check_with_browser_before_shutdown_ = true;
} }
......
...@@ -74,9 +74,7 @@ class ChildThread : public IPC::Channel::Listener, ...@@ -74,9 +74,7 @@ class ChildThread : public IPC::Channel::Listener,
// Called when the process refcount is 0. // Called when the process refcount is 0.
void OnProcessFinalRelease(); void OnProcessFinalRelease();
virtual bool OnControlMessageReceived(const IPC::Message& msg) { virtual bool OnControlMessageReceived(const IPC::Message& msg);
return false;
}
virtual void OnAskBeforeShutdown(); virtual void OnAskBeforeShutdown();
virtual void OnShutdown(); virtual void OnShutdown();
......
...@@ -19,6 +19,8 @@ ExtensionResource::ExtensionResource(const std::string& extension_id, ...@@ -19,6 +19,8 @@ ExtensionResource::ExtensionResource(const std::string& extension_id,
relative_path_(relative_path) { relative_path_(relative_path) {
} }
ExtensionResource::~ExtensionResource() {}
const FilePath& ExtensionResource::GetFilePath() const { const FilePath& ExtensionResource::GetFilePath() const {
if (extension_root_.empty() || relative_path_.empty()) { if (extension_root_.empty() || relative_path_.empty()) {
DCHECK(full_resource_path_.empty()); DCHECK(full_resource_path_.empty());
......
...@@ -22,6 +22,8 @@ class ExtensionResource { ...@@ -22,6 +22,8 @@ class ExtensionResource {
const FilePath& extension_root, const FilePath& extension_root,
const FilePath& relative_path); const FilePath& relative_path);
~ExtensionResource();
// Returns actual path to the resource (default or locale specific). In the // Returns actual path to the resource (default or locale specific). In the
// browser process, this will DCHECK if not called on the file thread. To // browser process, this will DCHECK if not called on the file thread. To
// easily load extension images on the UI thread, see ImageLoadingTracker. // easily load extension images on the UI thread, see ImageLoadingTracker.
......
...@@ -19,6 +19,10 @@ static const char* kExpectedGupdateProtocol = "2.0"; ...@@ -19,6 +19,10 @@ static const char* kExpectedGupdateProtocol = "2.0";
static const char* kExpectedGupdateXmlns = static const char* kExpectedGupdateXmlns =
"http://www.google.com/update2/response"; "http://www.google.com/update2/response";
UpdateManifest::Result::Result() {}
UpdateManifest::Result::~Result() {}
UpdateManifest::Results::Results() : daystart_elapsed_seconds(kNoDaystart) {} UpdateManifest::Results::Results() : daystart_elapsed_seconds(kNoDaystart) {}
UpdateManifest::Results::~Results() {} UpdateManifest::Results::~Results() {}
......
...@@ -36,6 +36,9 @@ class UpdateManifest { ...@@ -36,6 +36,9 @@ class UpdateManifest {
// The result of parsing one <app> tag in an xml update check manifest. // The result of parsing one <app> tag in an xml update check manifest.
struct Result { struct Result {
Result();
~Result();
std::string extension_id; std::string extension_id;
std::string version; std::string version;
std::string browser_min_version; std::string browser_min_version;
......
...@@ -31,7 +31,7 @@ class FileSystemDispatcher : public IPC::Channel::Listener { ...@@ -31,7 +31,7 @@ class FileSystemDispatcher : public IPC::Channel::Listener {
~FileSystemDispatcher(); ~FileSystemDispatcher();
// IPC::Channel::Listener implementation. // IPC::Channel::Listener implementation.
bool OnMessageReceived(const IPC::Message& msg); virtual bool OnMessageReceived(const IPC::Message& msg);
bool OpenFileSystem(const GURL& origin_url, bool OpenFileSystem(const GURL& origin_url,
fileapi::FileSystemType type, fileapi::FileSystemType type,
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/net/gaia/gaia_auth_consumer.h"
GaiaAuthConsumer::ClientLoginResult::ClientLoginResult()
: two_factor(false) {
}
GaiaAuthConsumer::ClientLoginResult::ClientLoginResult(
const std::string& new_sid,
const std::string& new_lsid,
const std::string& new_token,
const std::string& new_data)
: sid(new_sid),
lsid(new_lsid),
token(new_token),
data(new_data),
two_factor(false) {}
GaiaAuthConsumer::ClientLoginResult::~ClientLoginResult() {}
bool GaiaAuthConsumer::ClientLoginResult::operator==(
const ClientLoginResult &b) const {
return sid == b.sid &&
lsid == b.lsid &&
token == b.token &&
data == b.data &&
two_factor == b.two_factor;
}
...@@ -15,24 +15,14 @@ class GoogleServiceAuthError; ...@@ -15,24 +15,14 @@ class GoogleServiceAuthError;
class GaiaAuthConsumer { class GaiaAuthConsumer {
public: public:
struct ClientLoginResult { struct ClientLoginResult {
inline ClientLoginResult() : two_factor(false) {} ClientLoginResult();
inline ClientLoginResult(const std::string& new_sid, ClientLoginResult(const std::string& new_sid,
const std::string& new_lsid, const std::string& new_lsid,
const std::string& new_token, const std::string& new_token,
const std::string& new_data) const std::string& new_data);
: sid(new_sid), ~ClientLoginResult();
lsid(new_lsid),
token(new_token), bool operator==(const ClientLoginResult &b) const;
data(new_data),
two_factor(false) {}
inline bool operator==(const ClientLoginResult &b) const {
return sid == b.sid &&
lsid == b.lsid &&
token == b.token &&
data == b.data &&
two_factor == b.two_factor;
}
std::string sid; std::string sid;
std::string lsid; std::string lsid;
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/remoting/chromoting_host_info.h"
namespace remoting {
ChromotingHostInfo::ChromotingHostInfo()
: enabled(false) {
}
ChromotingHostInfo::~ChromotingHostInfo() {}
} // namespace remoting
...@@ -11,6 +11,9 @@ namespace remoting { ...@@ -11,6 +11,9 @@ namespace remoting {
// This struct is used for ServiceHostMsg_ChromotingHost_Info IPC message. // This struct is used for ServiceHostMsg_ChromotingHost_Info IPC message.
struct ChromotingHostInfo { struct ChromotingHostInfo {
ChromotingHostInfo();
~ChromotingHostInfo();
std::string host_id; std::string host_id;
std::string hostname; std::string hostname;
std::string public_key; std::string public_key;
......
...@@ -29,7 +29,7 @@ class ResourceDispatcher : public IPC::Channel::Listener { ...@@ -29,7 +29,7 @@ class ResourceDispatcher : public IPC::Channel::Listener {
~ResourceDispatcher(); ~ResourceDispatcher();
// IPC::Channel::Listener implementation. // IPC::Channel::Listener implementation.
bool OnMessageReceived(const IPC::Message& message); virtual bool OnMessageReceived(const IPC::Message& message);
// Creates a ResourceLoaderBridge for this type of dispatcher, this is so // Creates a ResourceLoaderBridge for this type of dispatcher, this is so
// this can be tested regardless of the ResourceLoaderBridge::Create // this can be tested regardless of the ResourceLoaderBridge::Create
......
...@@ -27,14 +27,14 @@ class WebSocketStreamHandleDelegate; ...@@ -27,14 +27,14 @@ class WebSocketStreamHandleDelegate;
class SocketStreamDispatcher : public IPC::Channel::Listener { class SocketStreamDispatcher : public IPC::Channel::Listener {
public: public:
SocketStreamDispatcher(); SocketStreamDispatcher();
~SocketStreamDispatcher() {} virtual ~SocketStreamDispatcher() {}
static webkit_glue::WebSocketStreamHandleBridge* CreateBridge( static webkit_glue::WebSocketStreamHandleBridge* CreateBridge(
WebKit::WebSocketStreamHandle* handle, WebKit::WebSocketStreamHandle* handle,
webkit_glue::WebSocketStreamHandleDelegate* delegate); webkit_glue::WebSocketStreamHandleDelegate* delegate);
// IPC::Channel::Listener implementation. // IPC::Channel::Listener implementation.
bool OnMessageReceived(const IPC::Message& msg); virtual bool OnMessageReceived(const IPC::Message& msg);
private: private:
void OnConnected(int socket_id, int max_amount_send_allowed); void OnConnected(int socket_id, int max_amount_send_allowed);
......
...@@ -52,6 +52,8 @@ AutoFillHelper::AutoFillHelper( ...@@ -52,6 +52,8 @@ AutoFillHelper::AutoFillHelper(
ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) { ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
} }
AutoFillHelper::~AutoFillHelper() {}
bool AutoFillHelper::OnMessageReceived(const IPC::Message& message) { bool AutoFillHelper::OnMessageReceived(const IPC::Message& message) {
bool handled = true; bool handled = true;
IPC_BEGIN_MESSAGE_MAP(AutoFillHelper, message) IPC_BEGIN_MESSAGE_MAP(AutoFillHelper, message)
......
...@@ -33,6 +33,7 @@ class AutoFillHelper : public RenderViewObserver, ...@@ -33,6 +33,7 @@ class AutoFillHelper : public RenderViewObserver,
// PasswordAutocompleteManager is guaranteed to outlive AutoFillHelper. // PasswordAutocompleteManager is guaranteed to outlive AutoFillHelper.
AutoFillHelper(RenderView* render_view, AutoFillHelper(RenderView* render_view,
PasswordAutocompleteManager* password_autocomplete_manager); PasswordAutocompleteManager* password_autocomplete_manager);
virtual ~AutoFillHelper();
// WebKit::WebAutoFillClient implementation. Public for tests. // WebKit::WebAutoFillClient implementation. Public for tests.
virtual void didAcceptAutoFillSuggestion(const WebKit::WebNode& node, virtual void didAcceptAutoFillSuggestion(const WebKit::WebNode& node,
......
...@@ -17,12 +17,12 @@ struct ViewMsg_DeviceOrientationUpdated_Params; ...@@ -17,12 +17,12 @@ struct ViewMsg_DeviceOrientationUpdated_Params;
class DeviceOrientationDispatcher : public RenderViewObserver, class DeviceOrientationDispatcher : public RenderViewObserver,
public WebKit::WebDeviceOrientationClient { public WebKit::WebDeviceOrientationClient {
public: public:
DeviceOrientationDispatcher(RenderView* render_view); explicit DeviceOrientationDispatcher(RenderView* render_view);
virtual ~DeviceOrientationDispatcher(); virtual ~DeviceOrientationDispatcher();
private: private:
// RenderView::Observer implementation. // RenderView::Observer implementation.
bool OnMessageReceived(const IPC::Message& message); virtual bool OnMessageReceived(const IPC::Message& message);
// From WebKit::WebDeviceOrientationClient. // From WebKit::WebDeviceOrientationClient.
virtual void setController( virtual void setController(
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
ExtensionRendererInfo::ExtensionRendererInfo() { ExtensionRendererInfo::ExtensionRendererInfo() {
} }
ExtensionRendererInfo::~ExtensionRendererInfo() {
}
size_t ExtensionRendererInfo::size() const { size_t ExtensionRendererInfo::size() const {
return extensions_.size(); return extensions_.size();
} }
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
class ExtensionRendererInfo { class ExtensionRendererInfo {
public: public:
ExtensionRendererInfo(); ExtensionRendererInfo();
~ExtensionRendererInfo();
// Gets the number of extensions contained. // Gets the number of extensions contained.
size_t size() const; size_t size() const;
......
...@@ -32,7 +32,7 @@ class GeolocationDispatcher : public RenderViewObserver, ...@@ -32,7 +32,7 @@ class GeolocationDispatcher : public RenderViewObserver,
private: private:
// RenderView::Observer implementation. // RenderView::Observer implementation.
bool OnMessageReceived(const IPC::Message& message); virtual bool OnMessageReceived(const IPC::Message& message);
// WebGeolocationClient // WebGeolocationClient
virtual void geolocationDestroyed(); virtual void geolocationDestroyed();
......
...@@ -30,7 +30,7 @@ class IndexedDBDispatcher : public IPC::Channel::Listener { ...@@ -30,7 +30,7 @@ class IndexedDBDispatcher : public IPC::Channel::Listener {
~IndexedDBDispatcher(); ~IndexedDBDispatcher();
// IPC::Channel::Listener implementation. // IPC::Channel::Listener implementation.
bool OnMessageReceived(const IPC::Message& msg); virtual bool OnMessageReceived(const IPC::Message& msg);
void RequestIDBFactoryOpen( void RequestIDBFactoryOpen(
const string16& name, const string16& name,
......
...@@ -25,7 +25,7 @@ class NotificationProvider : public RenderViewObserver, ...@@ -25,7 +25,7 @@ class NotificationProvider : public RenderViewObserver,
private: private:
// RenderView::Observer implementation. // RenderView::Observer implementation.
bool OnMessageReceived(const IPC::Message& message); virtual bool OnMessageReceived(const IPC::Message& message);
// WebKit::WebNotificationPresenter interface. // WebKit::WebNotificationPresenter interface.
virtual bool show(const WebKit::WebNotification& proxy); virtual bool show(const WebKit::WebNotification& proxy);
......
...@@ -51,7 +51,7 @@ class PageClickTracker : public RenderViewObserver, ...@@ -51,7 +51,7 @@ class PageClickTracker : public RenderViewObserver,
virtual void handleEvent(const WebKit::WebDOMEvent& event); virtual void handleEvent(const WebKit::WebDOMEvent& event);
// Called after the mouse event |event| has been processed by WebKit. // Called after the mouse event |event| has been processed by WebKit.
void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event);
// Returns the currently focused node in the associated render view. // Returns the currently focused node in the associated render view.
// That node may be null. // That node may be null.
......
...@@ -26,7 +26,8 @@ class RendererWebAudioDeviceImpl : public WebKit::WebAudioDevice, ...@@ -26,7 +26,8 @@ class RendererWebAudioDeviceImpl : public WebKit::WebAudioDevice,
virtual void stop(); virtual void stop();
// AudioDevice::RenderCallback implementation. // AudioDevice::RenderCallback implementation.
void Render(const std::vector<float*>& audio_data, size_t number_of_frames); virtual void Render(const std::vector<float*>& audio_data,
size_t number_of_frames);
private: private:
scoped_ptr<AudioDevice> audio_device_; scoped_ptr<AudioDevice> audio_device_;
......
...@@ -26,7 +26,7 @@ class SpeechInputDispatcher : public RenderViewObserver, ...@@ -26,7 +26,7 @@ class SpeechInputDispatcher : public RenderViewObserver,
private: private:
// RenderView::Observer implementation. // RenderView::Observer implementation.
bool OnMessageReceived(const IPC::Message& message); virtual bool OnMessageReceived(const IPC::Message& message);
// WebKit::WebSpeechInputController. // WebKit::WebSpeechInputController.
virtual bool startRecognition(int request_id, virtual bool startRecognition(int request_id,
......
...@@ -46,6 +46,8 @@ void ChromotingHostManager::Teardown() { ...@@ -46,6 +46,8 @@ void ChromotingHostManager::Teardown() {
Stop(); Stop();
} }
ChromotingHostManager::~ChromotingHostManager() {}
bool ChromotingHostManager::IsConfigInitialized() { bool ChromotingHostManager::IsConfigInitialized() {
std::string host_id; std::string host_id;
if (!chromoting_config_->GetString(remoting::kHostIdConfigPath, &host_id)) if (!chromoting_config_->GetString(remoting::kHostIdConfigPath, &host_id))
......
...@@ -38,7 +38,7 @@ class ChromotingHostManager ...@@ -38,7 +38,7 @@ class ChromotingHostManager
// Caller keeps ownership of |observer|. |observer| must not be // Caller keeps ownership of |observer|. |observer| must not be
// destroyed while this object exists. // destroyed while this object exists.
ChromotingHostManager(Observer* observer); explicit ChromotingHostManager(Observer* observer);
void Initialize(base::MessageLoopProxy* file_message_loop); void Initialize(base::MessageLoopProxy* file_message_loop);
void Teardown(); void Teardown();
...@@ -60,6 +60,9 @@ class ChromotingHostManager ...@@ -60,6 +60,9 @@ class ChromotingHostManager
void GetHostInfo(ChromotingHostInfo* host_info); void GetHostInfo(ChromotingHostInfo* host_info);
private: private:
friend class base::RefCountedThreadSafe<ChromotingHostManager>;
virtual ~ChromotingHostManager();
bool IsConfigInitialized(); bool IsConfigInitialized();
void InitializeConfig(); void InitializeConfig();
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
'notifier/listener/mediator_thread_mock.h', 'notifier/listener/mediator_thread_mock.h',
'notifier/listener/notification_constants.cc', 'notifier/listener/notification_constants.cc',
'notifier/listener/notification_constants.h', 'notifier/listener/notification_constants.h',
'notifier/listener/notification_defines.cc',
'notifier/listener/notification_defines.h', 'notifier/listener/notification_defines.h',
'notifier/listener/push_notifications_listen_task.cc', 'notifier/listener/push_notifications_listen_task.cc',
'notifier/listener/push_notifications_listen_task.h', 'notifier/listener/push_notifications_listen_task.h',
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "jingle/notifier/listener/notification_defines.h"
OutgoingNotificationData::OutgoingNotificationData()
: send_content(false),
priority(0),
require_subscription(false),
write_to_cache_only(false) {
}
OutgoingNotificationData::~OutgoingNotificationData() {}
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -13,10 +13,9 @@ struct IncomingNotificationData { ...@@ -13,10 +13,9 @@ struct IncomingNotificationData {
}; };
struct OutgoingNotificationData { struct OutgoingNotificationData {
OutgoingNotificationData() : send_content(false), priority(0), OutgoingNotificationData();
require_subscription(false), ~OutgoingNotificationData();
write_to_cache_only(false) {
}
// Id values // Id values
std::string service_url; std::string service_url;
std::string service_id; std::string service_id;
......
...@@ -10,6 +10,10 @@ PrinterBasicInfo::PrinterBasicInfo() : printer_status(0) {} ...@@ -10,6 +10,10 @@ PrinterBasicInfo::PrinterBasicInfo() : printer_status(0) {}
PrinterBasicInfo::~PrinterBasicInfo() {} PrinterBasicInfo::~PrinterBasicInfo() {}
PrinterCapsAndDefaults::PrinterCapsAndDefaults() {}
PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {}
PrintBackend::~PrintBackend() {} PrintBackend::~PrintBackend() {}
} // namespace printing } // namespace printing
...@@ -30,6 +30,9 @@ struct PrinterBasicInfo { ...@@ -30,6 +30,9 @@ struct PrinterBasicInfo {
typedef std::vector<PrinterBasicInfo> PrinterList; typedef std::vector<PrinterBasicInfo> PrinterList;
struct PrinterCapsAndDefaults { struct PrinterCapsAndDefaults {
PrinterCapsAndDefaults();
~PrinterCapsAndDefaults();
std::string printer_capabilities; std::string printer_capabilities;
std::string caps_mime_type; std::string caps_mime_type;
std::string printer_defaults; std::string printer_defaults;
......
...@@ -44,6 +44,8 @@ PageOverlays::PageOverlays() ...@@ -44,6 +44,8 @@ PageOverlays::PageOverlays()
bottom_right(kPageOnTotal) { bottom_right(kPageOnTotal) {
} }
PageOverlays::~PageOverlays() {}
bool PageOverlays::Equals(const PageOverlays& rhs) const { bool PageOverlays::Equals(const PageOverlays& rhs) const {
return top_left == rhs.top_left && return top_left == rhs.top_left &&
top_center == rhs.top_center && top_center == rhs.top_center &&
......
...@@ -31,6 +31,7 @@ class PageOverlays { ...@@ -31,6 +31,7 @@ class PageOverlays {
}; };
PageOverlays(); PageOverlays();
~PageOverlays();
// Equality operator. // Equality operator.
bool Equals(const PageOverlays& rhs) const; bool Equals(const PageOverlays& rhs) const;
......
...@@ -38,6 +38,8 @@ bool PageMargins::Equals(const PageMargins& rhs) const { ...@@ -38,6 +38,8 @@ bool PageMargins::Equals(const PageMargins& rhs) const {
PageSetup::PageSetup() : text_height_(0) { PageSetup::PageSetup() : text_height_(0) {
} }
PageSetup::~PageSetup() {}
void PageSetup::Clear() { void PageSetup::Clear() {
physical_size_.SetSize(0, 0); physical_size_.SetSize(0, 0);
printable_area_.SetRect(0, 0, 0, 0); printable_area_.SetRect(0, 0, 0, 0);
......
...@@ -35,6 +35,7 @@ class PageMargins { ...@@ -35,6 +35,7 @@ class PageMargins {
class PageSetup { class PageSetup {
public: public:
PageSetup(); PageSetup();
~PageSetup();
void Clear(); void Clear();
......
...@@ -145,10 +145,23 @@ sql::ErrorDelegate* GetErrorHandlerForAppCacheDb() { ...@@ -145,10 +145,23 @@ sql::ErrorDelegate* GetErrorHandlerForAppCacheDb() {
} // anon namespace } // anon namespace
// AppCacheDatabase ---------------------------------------------------------- // AppCacheDatabase ----------------------------------------------------------
namespace appcache { namespace appcache {
AppCacheDatabase::GroupRecord::GroupRecord()
: group_id(0) {
}
AppCacheDatabase::GroupRecord::~GroupRecord() {
}
AppCacheDatabase::FallbackNameSpaceRecord::FallbackNameSpaceRecord()
: cache_id(0) {
}
AppCacheDatabase::FallbackNameSpaceRecord::~FallbackNameSpaceRecord() {
}
AppCacheDatabase::AppCacheDatabase(const FilePath& path) AppCacheDatabase::AppCacheDatabase(const FilePath& path)
: db_file_path_(path), is_disabled_(false), is_recreating_(false) { : db_file_path_(path), is_disabled_(false), is_recreating_(false) {
} }
......
...@@ -31,45 +31,52 @@ namespace appcache { ...@@ -31,45 +31,52 @@ namespace appcache {
class AppCacheDatabase { class AppCacheDatabase {
public: public:
struct GroupRecord { struct GroupRecord {
GroupRecord();
~GroupRecord();
int64 group_id; int64 group_id;
GURL origin; GURL origin;
GURL manifest_url; GURL manifest_url;
base::Time creation_time; base::Time creation_time;
base::Time last_access_time; base::Time last_access_time;
GroupRecord() : group_id(0) {}
}; };
struct CacheRecord { struct CacheRecord {
CacheRecord()
: cache_id(0), group_id(0), online_wildcard(false), cache_size(0) {}
int64 cache_id; int64 cache_id;
int64 group_id; int64 group_id;
bool online_wildcard; bool online_wildcard;
base::Time update_time; base::Time update_time;
int64 cache_size; // the sum of all response sizes in this cache int64 cache_size; // the sum of all response sizes in this cache
CacheRecord()
: cache_id(0), group_id(0), online_wildcard(false), cache_size(0) {}
}; };
struct EntryRecord { struct EntryRecord {
EntryRecord() : cache_id(0), flags(0), response_id(0), response_size(0) {}
int64 cache_id; int64 cache_id;
GURL url; GURL url;
int flags; int flags;
int64 response_id; int64 response_id;
int64 response_size; int64 response_size;
EntryRecord() : cache_id(0), flags(0), response_id(0), response_size(0) {}
}; };
struct FallbackNameSpaceRecord { struct FallbackNameSpaceRecord {
FallbackNameSpaceRecord();
~FallbackNameSpaceRecord();
int64 cache_id; int64 cache_id;
GURL origin; // intentionally not normalized GURL origin; // intentionally not normalized
GURL namespace_url; GURL namespace_url;
GURL fallback_entry_url; GURL fallback_entry_url;
FallbackNameSpaceRecord() : cache_id(0) {}
}; };
struct OnlineWhiteListRecord { struct OnlineWhiteListRecord {
OnlineWhiteListRecord() : cache_id(0) {}
int64 cache_id; int64 cache_id;
GURL namespace_url; GURL namespace_url;
OnlineWhiteListRecord() : cache_id(0) {}
}; };
explicit AppCacheDatabase(const FilePath& path); explicit AppCacheDatabase(const FilePath& path);
......
...@@ -252,6 +252,8 @@ VarObjectClass::Property::Property(const PP_ClassProperty& prop) ...@@ -252,6 +252,8 @@ VarObjectClass::Property::Property(const PP_ClassProperty& prop)
VarObjectClass::InstanceData::InstanceData() : native_data(NULL) { VarObjectClass::InstanceData::InstanceData() : native_data(NULL) {
} }
VarObjectClass::InstanceData::~InstanceData() {}
VarObjectClass::VarObjectClass(PluginInstance* instance, VarObjectClass::VarObjectClass(PluginInstance* instance,
PP_ClassDestructor destruct, PP_ClassDestructor destruct,
PP_ClassFunction invoke, PP_ClassFunction invoke,
......
...@@ -33,6 +33,7 @@ class VarObjectClass : public Resource { ...@@ -33,6 +33,7 @@ class VarObjectClass : public Resource {
struct InstanceData : public NPObject { struct InstanceData : public NPObject {
InstanceData(); InstanceData();
~InstanceData();
scoped_refptr<VarObjectClass> object_class; scoped_refptr<VarObjectClass> object_class;
void* native_data; void* native_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment