0

Remove a few more semicolons.

TBR=rsesek

Bug: 926235
Change-Id: Ibaf250d761cc5f0fc5e334319c12ecb09f7e69c6
Reviewed-on: https://chromium-review.googlesource.com/c/1461320
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630638}
This commit is contained in:
Nico Weber
2019-02-09 17:37:02 +00:00
committed by Commit Bot
parent 0d28d30af7
commit 40cd26fdbc
183 changed files with 224 additions and 224 deletions
chrome/browser/local_discovery
components
autofill
bookmarks
browsing_data
cast_certificate
cast_channel
cloud_devices
content_settings
data_reduction_proxy
dom_distiller
download
internal
public
background_service
favicon
invalidation
metrics
ntp_snippets
omnibox
pdf
policy
previews
rappor
reading_list
safe_browsing
security_interstitials
signin
subresource_filter
sync
sync_sessions
ui_devtools
ukm
viz
content
device
extensions/browser/api
gpu
headless/lib/browser
ipc
media
net
pdf
ppapi/cpp
services
third_party/blink

@@ -182,7 +182,7 @@ class ProxyBase : public ServiceDiscoveryClientMdns::Proxy, public T {
void OnMdnsDestroy() override { void OnMdnsDestroy() override {
DeleteOnMdnsThread(implementation_.release()); DeleteOnMdnsThread(implementation_.release());
}; }
protected: protected:
void set_implementation(std::unique_ptr<T> implementation) { void set_implementation(std::unique_ptr<T> implementation) {
@@ -279,7 +279,7 @@ class ServiceResolverProxy : public ProxyBase<ServiceResolver> {
PostToMdnsThread(base::Bind(&ServiceResolver::StartResolving, PostToMdnsThread(base::Bind(&ServiceResolver::StartResolving,
base::Unretained(implementation()))); base::Unretained(implementation())));
} }
}; }
std::string GetName() const override { return service_name_; } std::string GetName() const override { return service_name_; }
@@ -319,7 +319,7 @@ class LocalDomainResolverProxy : public ProxyBase<LocalDomainResolver> {
PostToMdnsThread(base::Bind(&LocalDomainResolver::Start, PostToMdnsThread(base::Bind(&LocalDomainResolver::Start,
base::Unretained(implementation()))); base::Unretained(implementation())));
} }
}; }
private: private:
static void OnCallback(const WeakPtr& proxy, static void OnCallback(const WeakPtr& proxy,

@@ -15,8 +15,8 @@ namespace autofill {
// abstract the data from the metadata. // abstract the data from the metadata.
struct AutofillMetadata { struct AutofillMetadata {
public: public:
AutofillMetadata(){}; AutofillMetadata() {}
~AutofillMetadata(){}; ~AutofillMetadata() {}
bool operator==(const AutofillMetadata&) const; bool operator==(const AutofillMetadata&) const;
bool operator!=(const AutofillMetadata&) const; bool operator!=(const AutofillMetadata&) const;

@@ -46,7 +46,7 @@ class AutofillScanner {
size_t SaveCursor(); size_t SaveCursor();
// This is only for logging purposes. // This is only for logging purposes.
size_t CursorIndex() { return static_cast<size_t>(cursor_ - begin_); }; size_t CursorIndex() { return static_cast<size_t>(cursor_ - begin_); }
private: private:
void Init(const std::vector<AutofillField*>& fields); void Init(const std::vector<AutofillField*>& fields);

@@ -319,7 +319,7 @@ class FormStructure {
// - Name for Autofill of first field // - Name for Autofill of first field
base::string16 GetIdentifierForRefill() const; base::string16 GetIdentifierForRefill() const;
int developer_engagement_metrics() { return developer_engagement_metrics_; }; int developer_engagement_metrics() { return developer_engagement_metrics_; }
void set_randomized_encoder(std::unique_ptr<RandomizedEncoder> encoder); void set_randomized_encoder(std::unique_ptr<RandomizedEncoder> encoder);
@@ -348,7 +348,7 @@ class FormStructure {
if (sectioned_indexes.empty()) if (sectioned_indexes.empty())
return (size_t)-1; // Shouldn't happen. return (size_t)-1; // Shouldn't happen.
return sectioned_indexes.back().back(); return sectioned_indexes.back().back();
}; }
void AddFieldIndex(const size_t index, bool is_new_section) { void AddFieldIndex(const size_t index, bool is_new_section) {
if (is_new_section || Empty()) { if (is_new_section || Empty()) {

@@ -108,7 +108,7 @@ struct FormFieldData {
// Returns true if the field is visible to the user. // Returns true if the field is visible to the user.
bool IsVisible() const { bool IsVisible() const {
return is_focusable && role != ROLE_ATTRIBUTE_PRESENTATION; return is_focusable && role != ROLE_ATTRIBUTE_PRESENTATION;
}; }
// Note: operator==() performs a full-field-comparison(byte by byte), this is // Note: operator==() performs a full-field-comparison(byte by byte), this is
// different from SameFieldAs(), which ignores comparison for those "values" // different from SameFieldAs(), which ignores comparison for those "values"

@@ -18,7 +18,7 @@ class TitledUrlNodeSorter {
using TitledUrlNodes = std::vector<const TitledUrlNode*>; using TitledUrlNodes = std::vector<const TitledUrlNode*>;
using TitledUrlNodeSet = base::flat_set<const TitledUrlNode*>; using TitledUrlNodeSet = base::flat_set<const TitledUrlNode*>;
virtual ~TitledUrlNodeSorter() {}; virtual ~TitledUrlNodeSorter() {}
// Sorts |matches| in an implementation-specific way, placing the results in // Sorts |matches| in an implementation-specific way, placing the results in
// |sorted_nodes|. // |sorted_nodes|.

@@ -42,7 +42,7 @@ class BookmarkModelHelper : public bookmarks::BaseBookmarkModelObserver {
bool ids_reassigned) override { bool ids_reassigned) override {
std::move(callback_).Run(model); std::move(callback_).Run(model);
delete this; delete this;
}; }
void BookmarkModelBeingDeleted( void BookmarkModelBeingDeleted(
bookmarks::BookmarkModel* bookmark_model) override { bookmarks::BookmarkModel* bookmark_model) override {

@@ -29,7 +29,7 @@ class PasswordsCounter : public browsing_data::BrowsingDataCounter,
protected: protected:
virtual std::unique_ptr<SyncResult> MakeResult(); virtual std::unique_ptr<SyncResult> MakeResult();
bool is_sync_active() { return sync_tracker_.IsSyncActive(); }; bool is_sync_active() { return sync_tracker_.IsSyncActive(); }
int num_passwords() { return num_passwords_; } int num_passwords() { return num_passwords_; }
private: private:

@@ -23,7 +23,7 @@ namespace cast_certificate {
// This class represents the CRL information parsed from the binary proto. // This class represents the CRL information parsed from the binary proto.
class CastCRL { class CastCRL {
public: public:
virtual ~CastCRL(){}; virtual ~CastCRL() {}
// Verifies the revocation status of a cast device certificate given a chain // Verifies the revocation status of a cast device certificate given a chain
// of X.509 certificates. // of X.509 certificates.

@@ -14,7 +14,7 @@
namespace net { namespace net {
class IOBuffer; class IOBuffer;
}; // namespace net } // namespace net
namespace cast_channel { namespace cast_channel {

@@ -158,8 +158,8 @@ class BooleanCapability {
template <class Traits> template <class Traits>
class EmptyCapability { class EmptyCapability {
public: public:
EmptyCapability() {}; EmptyCapability() {}
~EmptyCapability() {}; ~EmptyCapability() {}
bool LoadFrom(const CloudDeviceDescription& description); bool LoadFrom(const CloudDeviceDescription& description);
void SaveTo(CloudDeviceDescription* description) const; void SaveTo(CloudDeviceDescription* description) const;

@@ -82,9 +82,9 @@ bool OriginIdentifierValueMap::PatternPair::operator<(
std::tie(other.primary_pattern, other.secondary_pattern); std::tie(other.primary_pattern, other.secondary_pattern);
} }
OriginIdentifierValueMap::ValueEntry::ValueEntry(){}; OriginIdentifierValueMap::ValueEntry::ValueEntry() {}
OriginIdentifierValueMap::ValueEntry::~ValueEntry(){}; OriginIdentifierValueMap::ValueEntry::~ValueEntry() {}
std::unique_ptr<RuleIterator> OriginIdentifierValueMap::GetRuleIterator( std::unique_ptr<RuleIterator> OriginIdentifierValueMap::GetRuleIterator(
ContentSettingsType content_type, ContentSettingsType content_type,

@@ -13,7 +13,7 @@ struct DataReductionProxyPageLoadTiming;
// server. // server.
class DataReductionProxyPingbackClient { class DataReductionProxyPingbackClient {
public: public:
virtual ~DataReductionProxyPingbackClient(){}; virtual ~DataReductionProxyPingbackClient() {}
// Sends a pingback to the data saver proxy server about various timing // Sends a pingback to the data saver proxy server about various timing
// information. // information.

@@ -288,7 +288,7 @@ const net::HttpRequestHeaders&
DataReductionProxySettings::GetProxyRequestHeaders() const { DataReductionProxySettings::GetProxyRequestHeaders() const {
DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(thread_checker_.CalledOnValidThread());
return proxy_request_headers_; return proxy_request_headers_;
}; }
void DataReductionProxySettings::SetProxyRequestHeaders( void DataReductionProxySettings::SetProxyRequestHeaders(
const net::HttpRequestHeaders& headers) { const net::HttpRequestHeaders& headers) {

@@ -35,8 +35,8 @@ class DistilledContentStore {
virtual void LoadContent(const ArticleEntry& entry, virtual void LoadContent(const ArticleEntry& entry,
LoadCallback callback) = 0; LoadCallback callback) = 0;
DistilledContentStore() {}; DistilledContentStore() {}
virtual ~DistilledContentStore() {}; virtual ~DistilledContentStore() {}
private: private:
DISALLOW_COPY_AND_ASSIGN(DistilledContentStore); DISALLOW_COPY_AND_ASSIGN(DistilledContentStore);

@@ -17,11 +17,11 @@ const char kAllArticles[] = "allarticles";
const char kOGArticle[] = "opengraph"; const char kOGArticle[] = "opengraph";
const char kAlwaysTrue[] = "alwaystrue"; const char kAlwaysTrue[] = "alwaystrue";
const char kNone[] = "none"; const char kNone[] = "none";
}; } // namespace reader_mode_heuristics
namespace reader_mode_feedback { namespace reader_mode_feedback {
const char kOn[] = "on"; const char kOn[] = "on";
const char kOff[] = "off"; const char kOff[] = "off";
}; } // namespace reader_mode_feedback
} // namespace switches } // namespace switches

@@ -28,12 +28,12 @@ extern const char kAllArticles[];
extern const char kOGArticle[]; extern const char kOGArticle[];
extern const char kAlwaysTrue[]; extern const char kAlwaysTrue[];
extern const char kNone[]; extern const char kNone[];
}; } // namespace reader_mode_heuristics
namespace reader_mode_feedback { namespace reader_mode_feedback {
extern const char kOn[]; extern const char kOn[];
extern const char kOff[]; extern const char kOff[];
}; } // namespace reader_mode_feedback
} // namespace switches } // namespace switches

@@ -30,7 +30,7 @@ bool IsURLSafe(int render_process_id, const GURL& url) {
class CompletedInputStream : public InputStream { class CompletedInputStream : public InputStream {
public: public:
CompletedInputStream(DownloadInterruptReason status) : status_(status){}; CompletedInputStream(DownloadInterruptReason status) : status_(status) {}
~CompletedInputStream() override = default; ~CompletedInputStream() override = default;
// InputStream // InputStream

@@ -53,7 +53,7 @@ class NavigationMonitor : public KeyedService {
base::TimeDelta navigation_timeout_delay) = 0; base::TimeDelta navigation_timeout_delay) = 0;
protected: protected:
~NavigationMonitor() override{}; ~NavigationMonitor() override {}
}; };
} // namespace download } // namespace download

@@ -24,13 +24,13 @@ class FaviconServerFetcherParams {
~FaviconServerFetcherParams(); ~FaviconServerFetcherParams();
const GURL& page_url() const { return page_url_; }; const GURL& page_url() const { return page_url_; }
favicon_base::IconType icon_type() const { return icon_type_; }; favicon_base::IconType icon_type() const { return icon_type_; }
int min_source_size_in_pixel() const { return min_source_size_in_pixel_; }; int min_source_size_in_pixel() const { return min_source_size_in_pixel_; }
int desired_size_in_pixel() const { return desired_size_in_pixel_; }; int desired_size_in_pixel() const { return desired_size_in_pixel_; }
const std::string& google_server_client_param() const { const std::string& google_server_client_param() const {
return google_server_client_param_; return google_server_client_param_;
}; }
private: private:
FaviconServerFetcherParams(const GURL& page_url, FaviconServerFetcherParams(const GURL& page_url,

@@ -98,7 +98,7 @@ class LargeIconService : public KeyedService {
virtual void TouchIconFromGoogleServer(const GURL& icon_url) = 0; virtual void TouchIconFromGoogleServer(const GURL& icon_url) = 0;
protected: protected:
LargeIconService(){}; LargeIconService() {}
private: private:
DISALLOW_COPY_AND_ASSIGN(LargeIconService); DISALLOW_COPY_AND_ASSIGN(LargeIconService);

@@ -77,7 +77,7 @@ void RecordRequestStatus(
} }
} }
}; // namespace } // namespace
namespace syncer { namespace syncer {

@@ -34,7 +34,7 @@ class PersistedLogsMetrics {
PersistedLogsMetrics() {} PersistedLogsMetrics() {}
virtual ~PersistedLogsMetrics() {} virtual ~PersistedLogsMetrics() {}
virtual void RecordLogReadStatus(LogReadStatus status){}; virtual void RecordLogReadStatus(LogReadStatus status) {}
virtual void RecordCompressionRatio( virtual void RecordCompressionRatio(
size_t compressed_size, size_t original_size) {} size_t compressed_size, size_t original_size) {}

@@ -72,7 +72,7 @@ class ReportingService {
static void RegisterPrefs(PrefRegistrySimple* registry); static void RegisterPrefs(PrefRegistrySimple* registry);
protected: protected:
MetricsServiceClient* client() const { return client_; }; MetricsServiceClient* client() const { return client_; }
private: private:
// Retrieves the log store backing this service. // Retrieves the log store backing this service.

@@ -47,7 +47,7 @@ ReadingListSuggestionsProvider::ReadingListSuggestionsProvider(
scoped_observer_.Add(reading_list_model_); scoped_observer_.Add(reading_list_model_);
} }
ReadingListSuggestionsProvider::~ReadingListSuggestionsProvider(){}; ReadingListSuggestionsProvider::~ReadingListSuggestionsProvider() {}
CategoryStatus ReadingListSuggestionsProvider::GetCategoryStatus( CategoryStatus ReadingListSuggestionsProvider::GetCategoryStatus(
Category category) { Category category) {

@@ -40,7 +40,7 @@ void PopulateShortcutsBackendWithTestData(
namespace history { namespace history {
class HistoryService; class HistoryService;
class ShortcutsDatabase; class ShortcutsDatabase;
}; // namespace history } // namespace history
// This class manages the shortcut provider backend - access to database on the // This class manages the shortcut provider backend - access to database on the
// db thread, etc. // db thread, etc.

@@ -23,7 +23,7 @@ class RendererPpapiHost;
namespace gfx { namespace gfx {
class Transform; class Transform;
}; }
namespace pdf { namespace pdf {

@@ -344,7 +344,7 @@ class POLICY_EXPORT CloudPolicyClient {
const std::string& client_id() const { return client_id_; } const std::string& client_id() const { return client_id_; }
const base::DictionaryValue* configuration_seed() const { const base::DictionaryValue* configuration_seed() const {
return configuration_seed_.get(); return configuration_seed_.get();
}; }
// The device mode as received in the registration request. // The device mode as received in the registration request.
DeviceMode device_mode() const { return device_mode_; } DeviceMode device_mode() const { return device_mode_; }

@@ -121,4 +121,4 @@ void UserInfoFetcher::OnFetchComplete(
} }
} }
}; // namespace policy } // namespace policy

@@ -42,7 +42,7 @@ class BloomFilter {
void Add(const std::string& str); void Add(const std::string& str);
// Returns the bit array data of this Bloom filter as vector of bytes. // Returns the bit array data of this Bloom filter as vector of bytes.
const ByteVector& bytes() const { return bytes_; }; const ByteVector& bytes() const { return bytes_; }
private: private:
// Number of bits to set for each added string. // Number of bits to set for each added string.

@@ -30,7 +30,7 @@ class BloomFilter {
void SetString(const std::string& str); void SetString(const std::string& str);
// Returns the current value of the Bloom filter's bit array. // Returns the current value of the Bloom filter's bit array.
const ByteVector& bytes() const { return bytes_; }; const ByteVector& bytes() const { return bytes_; }
private: private:
// Stores the byte array of the Bloom filter. // Stores the byte array of the Bloom filter.

@@ -9,8 +9,8 @@ namespace rappor {
class LogUploaderInterface { class LogUploaderInterface {
public: public:
LogUploaderInterface() {}; LogUploaderInterface() {}
virtual ~LogUploaderInterface() {}; virtual ~LogUploaderInterface() {}
// Begin uploading logs. // Begin uploading logs.
virtual void Start() = 0; virtual void Start() = 0;

@@ -51,7 +51,7 @@ const net::BackoffEntry::Policy ReadingListEntry::kBackoffPolicy = {
ReadingListEntry::ReadingListEntry(const GURL& url, ReadingListEntry::ReadingListEntry(const GURL& url,
const std::string& title, const std::string& title,
const base::Time& now) const base::Time& now)
: ReadingListEntry(url, title, now, nullptr){}; : ReadingListEntry(url, title, now, nullptr) {}
ReadingListEntry::ReadingListEntry(const GURL& url, ReadingListEntry::ReadingListEntry(const GURL& url,
const std::string& title, const std::string& title,

@@ -47,7 +47,7 @@ enum class TriggerType {
struct TriggerTypeHash { struct TriggerTypeHash {
std::size_t operator()(TriggerType trigger_type) const { std::size_t operator()(TriggerType trigger_type) const {
return static_cast<std::size_t>(trigger_type); return static_cast<std::size_t>(trigger_type);
}; }
}; };
// A map for storing a list of event timestamps for different trigger types. // A map for storing a list of event timestamps for different trigger types.

@@ -22,7 +22,7 @@ content::WebContents* GetWebContentsByFrameID(int render_process_id,
return content::WebContents::FromRenderFrameHost(render_frame_host); return content::WebContents::FromRenderFrameHost(render_frame_host);
} }
}; // namespace } // namespace
UnsafeResource::UnsafeResource() UnsafeResource::UnsafeResource()
: is_subresource(false), : is_subresource(false),

@@ -140,7 +140,7 @@ class BaseSafeBrowsingErrorUI {
const std::string app_locale() const { return app_locale_; } const std::string app_locale() const { return app_locale_; }
ControllerClient* controller() { return controller_; }; ControllerClient* controller() { return controller_; }
GURL request_url() const { return request_url_; } GURL request_url() const { return request_url_; }
GURL main_frame_url() const { return main_frame_url_; } GURL main_frame_url() const { return main_frame_url_; }

@@ -536,7 +536,7 @@ AboutSigninInternals::TokenInfo::ToValue() const {
} }
AboutSigninInternals::RefreshTokenEvent::RefreshTokenEvent() AboutSigninInternals::RefreshTokenEvent::RefreshTokenEvent()
: timestamp(base::Time::Now()){}; : timestamp(base::Time::Now()) {}
std::string AboutSigninInternals::RefreshTokenEvent::GetTypeAsString() const { std::string AboutSigninInternals::RefreshTokenEvent::GetTypeAsString() const {
switch (type) { switch (type) {

@@ -107,7 +107,7 @@ std::string BuildMirrorRequestCookieIfPossible(
} }
SigninHeaderHelper::SigninHeaderHelper(const std::string& histogram_suffix) SigninHeaderHelper::SigninHeaderHelper(const std::string& histogram_suffix)
: histogram_suffix_(histogram_suffix){}; : histogram_suffix_(histogram_suffix) {}
SigninHeaderHelper::~SigninHeaderHelper() = default; SigninHeaderHelper::~SigninHeaderHelper() = default;
bool SigninHeaderHelper::AppendOrRemoveRequestHeader( bool SigninHeaderHelper::AppendOrRemoveRequestHeader(

@@ -67,7 +67,7 @@ class TokenWebDataBackend
TokenResult::TokenResult() TokenResult::TokenResult()
: db_result(TokenServiceTable::TOKEN_DB_RESULT_SQL_INVALID_STATEMENT) {} : db_result(TokenServiceTable::TOKEN_DB_RESULT_SQL_INVALID_STATEMENT) {}
TokenResult::TokenResult(const TokenResult& other) = default; TokenResult::TokenResult(const TokenResult& other) = default;
TokenResult::~TokenResult(){}; TokenResult::~TokenResult() {}
TokenWebData::TokenWebData( TokenWebData::TokenWebData(
scoped_refptr<WebDatabaseService> wdbs, scoped_refptr<WebDatabaseService> wdbs,

@@ -79,7 +79,7 @@ class NonIsolatedCondition : public AdDelayThrottle::DeferCondition {
} }
}; };
}; // namespace } // namespace
AdDelayThrottle::DeferCondition::DeferCondition( AdDelayThrottle::DeferCondition::DeferCondition(
base::TimeDelta delay, base::TimeDelta delay,

@@ -206,4 +206,4 @@ ModelTypeSet BackendMigrator::GetPendingMigrationTypesForTest() const {
#undef SLOG #undef SLOG
}; // namespace syncer } // namespace syncer

@@ -53,6 +53,6 @@ class LostNavigationsRecorder : public syncer::LocalChangeObserver {
std::map<SessionID, id_type> max_recorded_for_tab_; std::map<SessionID, id_type> max_recorded_for_tab_;
DISALLOW_COPY_AND_ASSIGN(LostNavigationsRecorder); DISALLOW_COPY_AND_ASSIGN(LostNavigationsRecorder);
}; };
}; // namespace sync_sessions } // namespace sync_sessions
#endif // COMPONENTS_SYNC_SESSIONS_LOST_NAVIGATIONS_RECORDER_H_ #endif // COMPONENTS_SYNC_SESSIONS_LOST_NAVIGATIONS_RECORDER_H_

@@ -38,9 +38,9 @@ class UiDevToolsBaseAgent : public UiDevToolsAgent,
// Common methods between all generated Backends, subclasses may // Common methods between all generated Backends, subclasses may
// choose to override them (but not necessary). // choose to override them (but not necessary).
protocol::Response enable() override { return protocol::Response::OK(); }; protocol::Response enable() override { return protocol::Response::OK(); }
protocol::Response disable() override { return protocol::Response::OK(); }; protocol::Response disable() override { return protocol::Response::OK(); }
protected: protected:
UiDevToolsBaseAgent() {} UiDevToolsBaseAgent() {}

@@ -27,7 +27,7 @@ class UI_DEVTOOLS_EXPORT OverlayAgent
protocol::Response hideHighlight() override; protocol::Response hideHighlight() override;
protected: protected:
DOMAgent* dom_agent() const { return dom_agent_; }; DOMAgent* dom_agent() const { return dom_agent_; }
private: private:
DOMAgent* const dom_agent_; DOMAgent* const dom_agent_;

@@ -15,8 +15,8 @@ class UIElement;
class UIElementDelegate { class UIElementDelegate {
public: public:
UIElementDelegate(){}; UIElementDelegate() {}
virtual ~UIElementDelegate(){}; virtual ~UIElementDelegate() {}
virtual void OnUIElementAdded(UIElement* parent, UIElement* child) = 0; virtual void OnUIElementAdded(UIElement* parent, UIElement* child) = 0;

@@ -63,7 +63,7 @@ class OverlayAgentAura : public OverlayAgent,
HighlightRectsConfiguration highlight_rect_config() const { HighlightRectsConfiguration highlight_rect_config() const {
return highlight_rect_config_; return highlight_rect_config_;
}; }
// Return the id of the UI element located at |event|'s root location. // Return the id of the UI element located at |event|'s root location.
// The function first searches for the targeted window, then the targeted // The function first searches for the targeted window, then the targeted

@@ -22,7 +22,7 @@ class ViewElement : public views::ViewObserver, public UIElement {
UIElementDelegate* ui_element_delegate, UIElementDelegate* ui_element_delegate,
UIElement* parent); UIElement* parent);
~ViewElement() override; ~ViewElement() override;
views::View* view() const { return view_; }; views::View* view() const { return view_; }
// views::ViewObserver // views::ViewObserver
void OnChildViewRemoved(views::View* parent, views::View* view) override; void OnChildViewRemoved(views::View* parent, views::View* view) override;

@@ -25,7 +25,7 @@ class WidgetElement : public views::WidgetRemovalsObserver,
UIElementDelegate* ui_element_delegate, UIElementDelegate* ui_element_delegate,
UIElement* parent); UIElement* parent);
~WidgetElement() override; ~WidgetElement() override;
views::Widget* widget() const { return widget_; }; views::Widget* widget() const { return widget_; }
// views::WidgetRemovalsObserver: // views::WidgetRemovalsObserver:
void OnWillRemoveView(views::Widget* widget, views::View* view) override; void OnWillRemoveView(views::Widget* widget, views::View* view) override;

@@ -20,7 +20,7 @@ class WindowElement : public aura::WindowObserver, public UIElement {
UIElementDelegate* ui_element_delegate, UIElementDelegate* ui_element_delegate,
UIElement* parent); UIElement* parent);
~WindowElement() override; ~WindowElement() override;
aura::Window* window() const { return window_; }; aura::Window* window() const { return window_; }
// WindowObserver: // WindowObserver:
void OnWindowHierarchyChanging( void OnWindowHierarchyChanging(

@@ -36,13 +36,13 @@ class DOMAgentViz : public viz::SurfaceObserver,
// viz::SurfaceObserver: // viz::SurfaceObserver:
void OnFirstSurfaceActivation(const viz::SurfaceInfo& surface_info) override; void OnFirstSurfaceActivation(const viz::SurfaceInfo& surface_info) override;
void OnSurfaceActivated(const viz::SurfaceId& surface_id, void OnSurfaceActivated(const viz::SurfaceId& surface_id,
base::Optional<base::TimeDelta> duration) override{}; base::Optional<base::TimeDelta> duration) override {}
void OnSurfaceDestroyed(const viz::SurfaceId& surface_id) override{}; void OnSurfaceDestroyed(const viz::SurfaceId& surface_id) override {}
bool OnSurfaceDamaged(const viz::SurfaceId& surface_id, bool OnSurfaceDamaged(const viz::SurfaceId& surface_id,
const viz::BeginFrameAck& ack) override; const viz::BeginFrameAck& ack) override;
void OnSurfaceDiscarded(const viz::SurfaceId& surface_id) override; void OnSurfaceDiscarded(const viz::SurfaceId& surface_id) override;
void OnSurfaceDamageExpected(const viz::SurfaceId& surface_id, void OnSurfaceDamageExpected(const viz::SurfaceId& surface_id,
const viz::BeginFrameArgs& args) override{}; const viz::BeginFrameArgs& args) override {}
void OnAddedSurfaceReference(const viz::SurfaceId& parent_id, void OnAddedSurfaceReference(const viz::SurfaceId& parent_id,
const viz::SurfaceId& child_id) override; const viz::SurfaceId& child_id) override;
void OnRemovedSurfaceReference(const viz::SurfaceId& parent_id, void OnRemovedSurfaceReference(const viz::SurfaceId& parent_id,

@@ -42,8 +42,7 @@ TestUkmRecorder::TestUkmRecorder() {
DisableSamplingForTesting(); DisableSamplingForTesting();
} }
TestUkmRecorder::~TestUkmRecorder() { TestUkmRecorder::~TestUkmRecorder() {}
};
bool TestUkmRecorder::ShouldRestrictToWhitelistedSourceIds() const { bool TestUkmRecorder::ShouldRestrictToWhitelistedSourceIds() const {
// In tests, we want to record all source ids (not just those that are // In tests, we want to record all source ids (not just those that are
@@ -163,6 +162,6 @@ TestAutoSetUkmRecorder::TestAutoSetUkmRecorder() : self_ptr_factory_(this) {
TestAutoSetUkmRecorder::~TestAutoSetUkmRecorder() { TestAutoSetUkmRecorder::~TestAutoSetUkmRecorder() {
DelegatingUkmRecorder::Get()->RemoveDelegate(this); DelegatingUkmRecorder::Get()->RemoveDelegate(this);
}; }
} // namespace ukm } // namespace ukm

@@ -31,4 +31,4 @@ void FakeCompositorFrameSinkClient::InsertResources(
resources.end()); resources.end());
} }
}; // namespace viz } // namespace viz

@@ -64,6 +64,7 @@ DECLARE_ACCESSIBILITY_PREDICATE(AccessibilityUnvisitedLinkPredicate);
DECLARE_ACCESSIBILITY_PREDICATE(AccessibilityVisitedLinkPredicate); DECLARE_ACCESSIBILITY_PREDICATE(AccessibilityVisitedLinkPredicate);
DECLARE_ACCESSIBILITY_PREDICATE(AccessibilityTextStyleBoldPredicate); DECLARE_ACCESSIBILITY_PREDICATE(AccessibilityTextStyleBoldPredicate);
#undef DECLARE_ACCESSIBILITY_PREDICATE
// This class provides an interface for searching the accessibility tree from // This class provides an interface for searching the accessibility tree from
// a given starting node, with a few built-in options and allowing an arbitrary // a given starting node, with a few built-in options and allowing an arbitrary

@@ -237,13 +237,13 @@ class CacheStorage::MemoryLoader : public CacheStorage::CacheLoader {
CacheStorageCacheHandle cache_handle) override { CacheStorageCacheHandle cache_handle) override {
DCHECK(!base::ContainsKey(cache_handles_, cache_name)); DCHECK(!base::ContainsKey(cache_handles_, cache_name));
cache_handles_.insert(std::make_pair(cache_name, std::move(cache_handle))); cache_handles_.insert(std::make_pair(cache_name, std::move(cache_handle)));
}; }
void NotifyCacheDoomed(CacheStorageCacheHandle cache_handle) override { void NotifyCacheDoomed(CacheStorageCacheHandle cache_handle) override {
DCHECK( DCHECK(
base::ContainsKey(cache_handles_, cache_handle.value()->cache_name())); base::ContainsKey(cache_handles_, cache_handle.value()->cache_name()));
cache_handles_.erase(cache_handle.value()->cache_name()); cache_handles_.erase(cache_handle.value()->cache_name());
}; }
private: private:
typedef std::map<std::string, CacheStorageCacheHandle> CacheHandles; typedef std::map<std::string, CacheStorageCacheHandle> CacheHandles;
@@ -468,7 +468,7 @@ class CacheStorage::SimpleCacheLoader : public CacheStorage::CacheLoader {
cache_name_to_cache_dir_.find(cache_handle.value()->cache_name()); cache_name_to_cache_dir_.find(cache_handle.value()->cache_name());
doomed_cache_to_path_[cache_handle.value()] = iter->second; doomed_cache_to_path_[cache_handle.value()] = iter->second;
cache_name_to_cache_dir_.erase(iter); cache_name_to_cache_dir_.erase(iter);
}; }
private: private:
friend class MigratedLegacyCacheDirectoryNameTest; friend class MigratedLegacyCacheDirectoryNameTest;

@@ -47,7 +47,7 @@ class CONTENT_EXPORT CacheStorageContextImpl : public CacheStorageContext {
const std::string& cache_name) = 0; const std::string& cache_name) = 0;
protected: protected:
virtual ~Observer() {}; virtual ~Observer() {}
}; };
// Init and Shutdown are for use on the UI thread when the profile, // Init and Shutdown are for use on the UI thread when the profile,

@@ -157,11 +157,11 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
return dest_site_instance_.get(); return dest_site_instance_.get();
} }
RestoreType restore_type() const { return restore_type_; }; RestoreType restore_type() const { return restore_type_; }
bool is_view_source() const { return is_view_source_; }; bool is_view_source() const { return is_view_source_; }
int bindings() const { return bindings_; }; int bindings() const { return bindings_; }
bool browser_initiated() const { return browser_initiated_ ; } bool browser_initiated() const { return browser_initiated_ ; }

@@ -92,7 +92,7 @@ class RenderFrameProxyHost
return site_instance_.get(); return site_instance_.get();
} }
FrameTreeNode* frame_tree_node() const { return frame_tree_node_; }; FrameTreeNode* frame_tree_node() const { return frame_tree_node_; }
// Associates the RenderWidgetHostViewChildFrame |view| with this // Associates the RenderWidgetHostViewChildFrame |view| with this
// RenderFrameProxyHost. If |initial_frame_size| isn't specified at this time, // RenderFrameProxyHost. If |initial_frame_size| isn't specified at this time,

@@ -62,7 +62,7 @@ class CONTENT_EXPORT IndexedDBContextImpl : public IndexedDBContext {
const base::string16& object_store_name) = 0; const base::string16& object_store_name) = 0;
protected: protected:
virtual ~Observer() {}; virtual ~Observer() {}
}; };
// The indexed db directory. // The indexed db directory.

@@ -26,7 +26,7 @@ class CONTENT_EXPORT LevelDBIterator {
// expense of reloading and seeking later if the iterator is needed again for // expense of reloading and seeking later if the iterator is needed again for
// |Seek*|, |Next|, |Prev|, or |Value|. // |Seek*|, |Next|, |Prev|, or |Value|.
// Cannot be called more than once before the iterator is reloaded. // Cannot be called more than once before the iterator is reloaded.
virtual void Detach() {}; virtual void Detach() {}
virtual bool IsDetached() const; virtual bool IsDetached() const;
}; };

@@ -34,7 +34,7 @@ ScopeLock& ScopeLock::operator=(ScopeLock&& other) noexcept {
this->closure_runner_ = std::move(other.closure_runner_); this->closure_runner_ = std::move(other.closure_runner_);
other.is_locked_ = false; other.is_locked_ = false;
return *this; return *this;
}; }
void ScopeLock::Release() { void ScopeLock::Release() {
if (is_locked_) { if (is_locked_) {

@@ -28,7 +28,7 @@ namespace content {
class DetachableResourceHandler::Controller : public ResourceController { class DetachableResourceHandler::Controller : public ResourceController {
public: public:
explicit Controller(DetachableResourceHandler* detachable_handler) explicit Controller(DetachableResourceHandler* detachable_handler)
: detachable_handler_(detachable_handler){}; : detachable_handler_(detachable_handler) {}
~Controller() override {} ~Controller() override {}

@@ -10,7 +10,7 @@
namespace net { namespace net {
class HttpRequestHeaders; class HttpRequestHeaders;
}; }
namespace content { namespace content {

@@ -146,7 +146,7 @@ void PopulateResourceResponse(
class ResourceLoader::Controller : public ResourceController { class ResourceLoader::Controller : public ResourceController {
public: public:
explicit Controller(ResourceLoader* resource_loader) explicit Controller(ResourceLoader* resource_loader)
: resource_loader_(resource_loader){}; : resource_loader_(resource_loader) {}
~Controller() override {} ~Controller() override {}

@@ -9,7 +9,7 @@ namespace content {
AudioMutingSession::AudioMutingSession(const base::UnguessableToken& group_id) AudioMutingSession::AudioMutingSession(const base::UnguessableToken& group_id)
: group_id_(group_id) {} : group_id_(group_id) {}
AudioMutingSession::~AudioMutingSession(){}; AudioMutingSession::~AudioMutingSession() {}
void AudioMutingSession::Connect(audio::mojom::StreamFactory* factory) { void AudioMutingSession::Connect(audio::mojom::StreamFactory* factory) {
if (muter_) if (muter_)

@@ -22,7 +22,7 @@ FlingingRenderer::FlingingRenderer(
FlingingRenderer::~FlingingRenderer() { FlingingRenderer::~FlingingRenderer() {
controller_->RemoveMediaStatusObserver(this); controller_->RemoveMediaStatusObserver(this);
}; }
// static // static
std::unique_ptr<FlingingRenderer> FlingingRenderer::Create( std::unique_ptr<FlingingRenderer> FlingingRenderer::Create(

@@ -249,6 +249,6 @@ void MidiHost::EndSession() {
midi_service_->EndSession(this); midi_service_->EndSession(this);
midi_client_.reset(); midi_client_.reset();
midi_session_.Close(); midi_session_.Close();
}; }
} // namespace content } // namespace content

@@ -49,7 +49,7 @@ class PepperTrueTypeFont
protected: protected:
friend class base::RefCountedThreadSafe<PepperTrueTypeFont>; friend class base::RefCountedThreadSafe<PepperTrueTypeFont>;
virtual ~PepperTrueTypeFont() {}; virtual ~PepperTrueTypeFont() {}
}; };
} // namespace content } // namespace content

@@ -135,7 +135,7 @@ class CONTENT_EXPORT RenderWidgetHostViewChildFrame
// Since the URL of content rendered by this class is not displayed in // Since the URL of content rendered by this class is not displayed in
// the URL bar, this method does not need an implementation. // the URL bar, this method does not need an implementation.
void ClearCompositorFrame() override {} void ClearCompositorFrame() override {}
void ResetFallbackToFirstNavigationSurface() override{}; void ResetFallbackToFirstNavigationSurface() override {}
void TransformPointToRootSurface(gfx::PointF* point) override; void TransformPointToRootSurface(gfx::PointF* point) override;
gfx::Rect GetBoundsInRootWindow() override; gfx::Rect GetBoundsInRootWindow() override;

@@ -273,4 +273,4 @@ void ServiceWorkerInstalledScriptReader::CompleteSendIfNeeded(
client_->OnFinished(reason); client_->OnFinished(reason);
} }
}; // namespace content } // namespace content

@@ -125,7 +125,7 @@ ServiceWorkerNavigationLoader::~ServiceWorkerNavigationLoader() {
"ServiceWorker", "ServiceWorker",
"ServiceWorkerNavigationLoader::~ServiceWorkerNavigationloader", this, "ServiceWorkerNavigationLoader::~ServiceWorkerNavigationloader", this,
TRACE_EVENT_FLAG_FLOW_IN); TRACE_EVENT_FLAG_FLOW_IN);
}; }
void ServiceWorkerNavigationLoader::FallbackToNetwork() { void ServiceWorkerNavigationLoader::FallbackToNetwork() {
DCHECK_CURRENTLY_ON(BrowserThread::IO); DCHECK_CURRENTLY_ON(BrowserThread::IO);

@@ -2121,7 +2121,7 @@ void ServiceWorkerVersion::set_compared_script_info_map(
std::map<GURL, ServiceWorkerUpdateChecker::ComparedScriptInfo> std::map<GURL, ServiceWorkerUpdateChecker::ComparedScriptInfo>
compared_script_info_map) { compared_script_info_map) {
compared_script_info_map_ = std::move(compared_script_info_map); compared_script_info_map_ = std::move(compared_script_info_map);
}; }
const std::map<GURL, ServiceWorkerUpdateChecker::ComparedScriptInfo>& const std::map<GURL, ServiceWorkerUpdateChecker::ComparedScriptInfo>&
ServiceWorkerVersion::compared_script_info_map() const { ServiceWorkerVersion::compared_script_info_map() const {

@@ -36,6 +36,6 @@ class UtilityProcessHostClient
virtual ~UtilityProcessHostClient() {} virtual ~UtilityProcessHostClient() {}
}; };
}; // namespace content } // namespace content
#endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_ #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_

@@ -59,7 +59,7 @@ class CONTENT_EXPORT SignedExchangeEnvelope {
const signed_exchange_utils::URLWithRawString& request_url() const { const signed_exchange_utils::URLWithRawString& request_url() const {
return request_url_; return request_url_;
}; }
void set_request_url(const signed_exchange_utils::URLWithRawString& url) { void set_request_url(const signed_exchange_utils::URLWithRawString& url) {
request_url_ = url; request_url_ = url;
} }

@@ -92,7 +92,7 @@ class CONTENT_EXPORT SignedExchangeLoader final
void ConnectToClient(network::mojom::URLLoaderClientPtr client); void ConnectToClient(network::mojom::URLLoaderClientPtr client);
const base::Optional<GURL>& fallback_url() const { return fallback_url_; }; const base::Optional<GURL>& fallback_url() const { return fallback_url_; }
const base::Optional<GURL>& inner_request_url() const { const base::Optional<GURL>& inner_request_url() const {
return inner_request_url_; return inner_request_url_;

@@ -72,6 +72,6 @@ class WebSandboxSupportLinux : public blink::WebSandboxSupport {
DISALLOW_COPY_AND_ASSIGN(WebSandboxSupportLinux); DISALLOW_COPY_AND_ASSIGN(WebSandboxSupportLinux);
}; };
}; // namespace content } // namespace content
#endif // CONTENT_CHILD_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ #endif // CONTENT_CHILD_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_

@@ -19,7 +19,7 @@ bool AllowFromSources(const GURL& url,
return false; return false;
} }
}; // namespace } // namespace
CSPSourceList::CSPSourceList() CSPSourceList::CSPSourceList()
: allow_self(false), : allow_self(false),

@@ -17,6 +17,6 @@ struct CONTENT_EXPORT DragEventSourceInfo {
ui::DragDropTypes::DragEventSource event_source; ui::DragDropTypes::DragEventSource event_source;
}; };
}; // namespace content } // namespace content
#endif // CONTENT_COMMON_DRAG_EVENT_SOURCE_INFO_H_ #endif // CONTENT_COMMON_DRAG_EVENT_SOURCE_INFO_H_

@@ -24,7 +24,7 @@ class CONTENT_EXPORT BackgroundSyncController {
// background sync. Note that disable can be overridden from false to true // background sync. Note that disable can be overridden from false to true
// but overrides from true to false will be ignored. // but overrides from true to false will be ignored.
virtual void GetParameterOverrides( virtual void GetParameterOverrides(
BackgroundSyncParameters* parameters) const {}; BackgroundSyncParameters* parameters) const {}
// Notification that a service worker registration with origin |origin| just // Notification that a service worker registration with origin |origin| just
// registered a background sync event. // registered a background sync event.

@@ -110,6 +110,6 @@ class BrowserAssociatedInterface {
DISALLOW_COPY_AND_ASSIGN(BrowserAssociatedInterface); DISALLOW_COPY_AND_ASSIGN(BrowserAssociatedInterface);
}; };
}; } // namespace content
#endif // CONTENT_BROWSER_BROWSER_ASSOCIATED_INTERFACE_H_ #endif // CONTENT_BROWSER_BROWSER_ASSOCIATED_INTERFACE_H_

@@ -105,6 +105,6 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender {
#endif #endif
}; };
}; // namespace content } // namespace content
#endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_

@@ -28,6 +28,6 @@ class CONTENT_EXPORT BrowserChildProcessHostDelegate : public IPC::Listener {
virtual void OnProcessCrashed(int exit_code) {} virtual void OnProcessCrashed(int exit_code) {}
}; };
}; // namespace content } // namespace content
#endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_

@@ -62,6 +62,6 @@ class CONTENT_EXPORT BrowserChildProcessHostTypeIterator
} }
}; };
}; // namespace content } // namespace content
#endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_ITERATOR_H_ #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_ITERATOR_H_

@@ -74,6 +74,6 @@ class GpuDataManager {
virtual ~GpuDataManager() {} virtual ~GpuDataManager() {}
}; };
}; // namespace content } // namespace content
#endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_

@@ -24,6 +24,6 @@ class CONTENT_EXPORT GpuDataManagerObserver {
virtual ~GpuDataManagerObserver() {} virtual ~GpuDataManagerObserver() {}
}; };
}; // namespace content } // namespace content
#endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_

@@ -14,7 +14,7 @@ namespace content {
// UI thread as a clone. // UI thread as a clone.
class NavigationData { class NavigationData {
public: public:
virtual ~NavigationData(){}; virtual ~NavigationData() {}
// Creates a new NavigationData that is a deep copy of the original // Creates a new NavigationData that is a deep copy of the original
virtual std::unique_ptr<NavigationData> Clone() const = 0; virtual std::unique_ptr<NavigationData> Clone() const = 0;

@@ -24,7 +24,7 @@ class CONTENT_EXPORT PermissionController
// cancelling/unsubscribing at a later stage would have no effect. // cancelling/unsubscribing at a later stage would have no effect.
static const int kNoPendingOperation = -1; static const int kNoPendingOperation = -1;
~PermissionController() override{}; ~PermissionController() override {}
// Returns the permission status of a given requesting_origin/embedding_origin // Returns the permission status of a given requesting_origin/embedding_origin
// tuple. This is not taking a RenderFrameHost because the call might happen // tuple. This is not taking a RenderFrameHost because the call might happen

@@ -10,7 +10,7 @@
#include "base/supports_user_data.h" #include "base/supports_user_data.h"
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
#define WEB_CONTENTS_USER_DATA_KEY_DECL() static constexpr int kUserDataKey = 0; #define WEB_CONTENTS_USER_DATA_KEY_DECL() static constexpr int kUserDataKey = 0
#define WEB_CONTENTS_USER_DATA_KEY_IMPL(Type) const int Type::kUserDataKey; #define WEB_CONTENTS_USER_DATA_KEY_IMPL(Type) const int Type::kUserDataKey;

@@ -39,6 +39,6 @@ class ChildProcessHostDelegate : public IPC::Listener {
mojo::ScopedMessagePipeHandle interface_pipe) {} mojo::ScopedMessagePipeHandle interface_pipe) {}
}; };
}; // namespace content } // namespace content
#endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_ #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_

@@ -11,7 +11,7 @@ blink::mojom::ReferrerPtr
TypeConverter<blink::mojom::ReferrerPtr, content::Referrer>::Convert( TypeConverter<blink::mojom::ReferrerPtr, content::Referrer>::Convert(
const content::Referrer& input) { const content::Referrer& input) {
return blink::mojom::Referrer::New(input.url, input.policy); return blink::mojom::Referrer::New(input.url, input.policy);
}; }
// static // static
content::Referrer content::Referrer
@@ -20,6 +20,6 @@ TypeConverter<content::Referrer, blink::mojom::ReferrerPtr>::Convert(
if (!input) if (!input)
return content::Referrer(); return content::Referrer();
return content::Referrer(input->url, input->policy); return content::Referrer(input->url, input->policy);
}; }
} // namespace mojo } // namespace mojo

@@ -45,7 +45,7 @@ class CONTENT_EXPORT WorkerThread {
static void PostTask(int id, base::OnceClosure task); static void PostTask(int id, base::OnceClosure task);
private: private:
WorkerThread(){}; WorkerThread() {}
DISALLOW_COPY_AND_ASSIGN(WorkerThread); DISALLOW_COPY_AND_ASSIGN(WorkerThread);
}; };

@@ -24,7 +24,7 @@
namespace blink { namespace blink {
class WebDocument; class WebDocument;
class WebNode; class WebNode;
}; } // namespace blink
namespace ui { namespace ui {
struct AXActionData; struct AXActionData;

@@ -126,7 +126,7 @@ class CategorizedWorkerPool::CategorizedWorkerPoolSequencedTaskRunner
task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_); task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_);
task_graph_runner_->CollectCompletedTasks(namespace_token_, task_graph_runner_->CollectCompletedTasks(namespace_token_,
&completed_tasks_); &completed_tasks_);
}; }
// Lock to exclusively access all the following members that are used to // Lock to exclusively access all the following members that are used to
// implement the SequencedTaskRunner interfaces. // implement the SequencedTaskRunner interfaces.

@@ -19,7 +19,7 @@
namespace IPC { namespace IPC {
class Message; class Message;
}; }
namespace content { namespace content {

@@ -18,8 +18,8 @@
namespace blink { namespace blink {
namespace scheduler { namespace scheduler {
class WebThreadScheduler; class WebThreadScheduler;
}; // namespace scheduler } // namespace scheduler
}; // namespace blink } // namespace blink
namespace content { namespace content {
class MainThreadEventQueue; class MainThreadEventQueue;

@@ -31,7 +31,7 @@
namespace base { namespace base {
class WaitableEvent; class WaitableEvent;
}; // namespace base } // namespace base
namespace media { namespace media {
class GpuVideoAcceleratorFactories; class GpuVideoAcceleratorFactories;

@@ -14,7 +14,7 @@
namespace rtc { namespace rtc {
struct PacketOptions; struct PacketOptions;
}; }
namespace content { namespace content {

@@ -38,7 +38,7 @@ class CONTENT_EXPORT PPB_ImageData_Impl
// it cheap & easy to implement Swap. // it cheap & easy to implement Swap.
class Backend { class Backend {
public: public:
virtual ~Backend() {}; virtual ~Backend() {}
virtual bool Init(PPB_ImageData_Impl* impl, virtual bool Init(PPB_ImageData_Impl* impl,
PP_ImageDataFormat format, PP_ImageDataFormat format,
int width, int width,

@@ -74,7 +74,7 @@ ServiceWorkerTimeoutTimer::~ServiceWorkerTimeoutTimer() {
// Abort all callbacks. // Abort all callbacks.
for (auto& event : inflight_events_) for (auto& event : inflight_events_)
std::move(event.abort_callback).Run(); std::move(event.abort_callback).Run();
}; }
int ServiceWorkerTimeoutTimer::StartEvent( int ServiceWorkerTimeoutTimer::StartEvent(
base::OnceCallback<void(int /* event_id */)> abort_callback) { base::OnceCallback<void(int /* event_id */)> abort_callback) {

@@ -86,7 +86,7 @@ BluetoothLocalGattServiceBlueZ::GetCharacteristic(
const std::string& identifier) { const std::string& identifier) {
const auto& service = characteristics_.find(dbus::ObjectPath(identifier)); const auto& service = characteristics_.find(dbus::ObjectPath(identifier));
return service == characteristics_.end() ? nullptr : service->second.get(); return service == characteristics_.end() ? nullptr : service->second.get();
}; }
const std::map<dbus::ObjectPath, const std::map<dbus::ObjectPath,
std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>& std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>&

@@ -26,7 +26,7 @@
namespace service_manager { namespace service_manager {
class Connector; class Connector;
}; // namespace service_manager } // namespace service_manager
namespace device { namespace device {

Some files were not shown because too many files have changed in this diff Show More