Skip to content

Commit

Permalink
Switch to standard integer types in android_webview/.
Browse files Browse the repository at this point in the history
BUG=488550
TBR=mnaganov@chromium.org

Review URL: https://codereview.chromium.org/1538223002

Cr-Commit-Position: refs/heads/master@{#366299}
  • Loading branch information
avi authored and Commit bot committed Dec 20, 2015
1 parent 60b1edd commit de7d5c2
Show file tree
Hide file tree
Showing 87 changed files with 200 additions and 128 deletions.
2 changes: 1 addition & 1 deletion android_webview/browser/aw_browser_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include "android_webview/browser/aw_download_manager_delegate.h"
#include "android_webview/browser/aw_message_port_service.h"
#include "android_webview/browser/aw_ssl_host_state_delegate.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "components/visitedlink/browser/visitedlink_delegate.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_browser_main_parts.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_

#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/browser_main_parts.h"

Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_browser_policy_connector.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_POLICY_CONNECTOR_H_
#define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_POLICY_CONNECTOR_H_

#include "base/macros.h"
#include "components/policy/core/browser/browser_policy_connector_base.h"

namespace android_webview {
Expand Down
4 changes: 3 additions & 1 deletion android_webview/browser/aw_content_browser_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
#ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
#define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_

#include <stddef.h>

#include "android_webview/browser/aw_web_preferences_populater.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/content_browser_client.h"

Expand Down
4 changes: 3 additions & 1 deletion android_webview/browser/aw_contents_io_thread_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
#define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_

#include <stdint.h>

#include <string>

#include "base/callback_forward.h"
Expand Down Expand Up @@ -98,7 +100,7 @@ class AwContentsIoThreadClient {
const std::string& user_agent,
const std::string& content_disposition,
const std::string& mime_type,
int64 content_length) = 0;
int64_t content_length) = 0;

// Called when a new login request is detected. See the documentation for
// WebViewClient.onReceivedLoginRequest for arguments. Note that |account|
Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/aw_cookie_access_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_COOKIE_ACCESS_POLICY_H_
#define ANDROID_WEBVIEW_BROWSER_AW_COOKIE_ACCESS_POLICY_H_

#include "base/basictypes.h"
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/synchronization/lock.h"
#include "net/base/static_cookie_policy.h"
#include "net/cookies/canonical_cookie.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_dev_tools_discovery_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_
#define ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_

#include "base/macros.h"
#include "components/devtools_discovery/devtools_discovery_manager.h"

namespace android_webview {
Expand Down
3 changes: 1 addition & 2 deletions android_webview/browser/aw_download_manager_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "content/public/browser/download_danger_type.h"
#include "content/public/browser/download_item.h"


namespace android_webview {

AwDownloadManagerDelegate::~AwDownloadManagerDelegate() {}
Expand Down Expand Up @@ -42,7 +41,7 @@ bool AwDownloadManagerDelegate::ShouldOpenDownload(

void AwDownloadManagerDelegate::GetNextId(
const content::DownloadIdCallback& callback) {
static uint32 next_id = content::DownloadItem::kInvalidId + 1;
static uint32_t next_id = content::DownloadItem::kInvalidId + 1;
callback.Run(next_id++);
}

Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/aw_form_database_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_
#define ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_

#include "base/basictypes.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/webdata/common/web_data_service_consumer.h"
#include "components/webdata/common/web_database_service.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_gl_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
#define ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_

#include "base/macros.h"
#include "ui/gl/gl_surface.h"

namespace android_webview {
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_javascript_dialog_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_
#define ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_

#include "base/macros.h"
#include "content/public/browser/javascript_dialog_manager.h"

namespace android_webview {
Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/aw_locale_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <string>

#include "base/basictypes.h"
#include "base/macros.h"

namespace android_webview {

Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_message_port_message_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define ANDROID_WEBVIEW_BROWSER_MESSAGE_PORT_MESSAGE_FILTER_H_

#include "base/callback.h"
#include "base/macros.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/message_port_delegate.h"

Expand Down
8 changes: 4 additions & 4 deletions android_webview/browser/aw_pref_store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ bool AwPrefStore::IsInitializationComplete() const {

void AwPrefStore::SetValue(const std::string& key,
scoped_ptr<base::Value> value,
uint32 flags) {
uint32_t flags) {
DCHECK(value);
if (prefs_.SetValue(key, value.Pass()))
ReportValueChanged(key, flags);
}

void AwPrefStore::SetValueSilently(const std::string& key,
scoped_ptr<base::Value> value,
uint32 flags) {
uint32_t flags) {
prefs_.SetValue(key, value.Pass());
}

void AwPrefStore::RemoveValue(const std::string& key, uint32 flags) {
void AwPrefStore::RemoveValue(const std::string& key, uint32_t flags) {
if (prefs_.RemoveValue(key))
ReportValueChanged(key, flags);
}
Expand All @@ -71,6 +71,6 @@ PersistentPrefStore::PrefReadError AwPrefStore::ReadPrefs() {
void AwPrefStore::ReadPrefsAsync(ReadErrorDelegate* error_delegate_raw) {
}

void AwPrefStore::ReportValueChanged(const std::string& key, uint32 flags) {
void AwPrefStore::ReportValueChanged(const std::string& key, uint32_t flags) {
FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
}
12 changes: 7 additions & 5 deletions android_webview/browser/aw_pref_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_
#define ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_

#include <stdint.h>

#include <string>

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/observer_list.h"
#include "base/prefs/persistent_pref_store.h"
#include "base/prefs/pref_value_map.h"
Expand All @@ -31,14 +33,14 @@ class AwPrefStore : public PersistentPrefStore {

// PersistentPrefStore overrides:
bool GetMutableValue(const std::string& key, base::Value** result) override;
void ReportValueChanged(const std::string& key, uint32 flags) override;
void ReportValueChanged(const std::string& key, uint32_t flags) override;
void SetValue(const std::string& key,
scoped_ptr<base::Value> value,
uint32 flags) override;
uint32_t flags) override;
void SetValueSilently(const std::string& key,
scoped_ptr<base::Value> value,
uint32 flags) override;
void RemoveValue(const std::string& key, uint32 flags) override;
uint32_t flags) override;
void RemoveValue(const std::string& key, uint32_t flags) override;
bool ReadOnly() const override;
PrefReadError GetReadError() const override;
PersistentPrefStore::PrefReadError ReadPrefs() override;
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_print_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_PRINT_MANAGER_H_
#define ANDROID_WEBVIEW_BROWSER_PRINT_MANAGER_H_

#include "base/macros.h"
#include "components/printing/browser/print_manager.h"
#include "content/public/browser/web_contents_user_data.h"
#include "printing/print_settings.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_printing_message_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_
#define ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_

#include "base/macros.h"
#include "content/public/browser/browser_message_filter.h"

namespace android_webview {
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_quota_permission_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define ANDROID_WEBVIEW_BROWSER_AW_QUOTA_PERMISSION_CONTEXT_H_

#include "base/compiler_specific.h"
#include "base/macros.h"
#include "content/public/browser/quota_permission_context.h"

namespace android_webview {
Expand Down
2 changes: 2 additions & 0 deletions android_webview/browser/aw_render_thread_context_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
#define ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_

#include <stdint.h>

#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_resource_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <map>
#include <string>

#include "base/macros.h"
#include "base/synchronization/lock.h"
#include "content/public/browser/resource_context.h"

Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/aw_ssl_host_state_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <map>
#include <string>

#include "base/macros.h"
#include "content/public/browser/ssl_host_state_delegate.h"
#include "net/base/hash_value.h"
#include "net/cert/cert_status_flags.h"
Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/browser_view_renderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace {

const double kEpsilon = 1e-8;

const int64 kFallbackTickTimeoutInMilliseconds = 100;
const int64_t kFallbackTickTimeoutInMilliseconds = 100;

// Used to calculate memory allocation. Determined experimentally.
const size_t kMemoryMultiplier = 20;
Expand Down
3 changes: 3 additions & 0 deletions android_webview/browser/browser_view_renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
#ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
#define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_

#include <stddef.h>

#include <map>

#include "android_webview/browser/parent_compositor_draw_constraints.h"
#include "android_webview/browser/shared_renderer_state.h"
#include "base/callback.h"
#include "base/cancelable_callback.h"
#include "base/macros.h"
#include "base/trace_event/trace_event.h"
#include "content/public/browser/android/synchronous_compositor.h"
#include "content/public/browser/android/synchronous_compositor_client.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/child_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_
#define ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_

#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
Expand Down
3 changes: 3 additions & 0 deletions android_webview/browser/deferred_gpu_command_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
#ifndef ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_
#define ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_

#include <stddef.h>

#include <queue>
#include <utility>

#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_local.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/find_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_FIND_HELPER_H_
#define ANDROID_WEBVIEW_BROWSER_FIND_HELPER_H_

#include "base/macros.h"
#include "content/public/browser/web_contents_observer.h"

namespace android_webview {
Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/gl_view_renderer_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <list>

#include "base/basictypes.h"
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"

Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/hardware_renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_

#include "android_webview/browser/shared_renderer_state.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "cc/surfaces/display_client.h"
#include "cc/surfaces/surface_factory_client.h"
Expand Down
6 changes: 5 additions & 1 deletion android_webview/browser/icon_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
#ifndef ANDROID_WEBVIEW_BROWSER_ICON_HELPER_H_
#define ANDROID_WEBVIEW_BROWSER_ICON_HELPER_H_

#include <stdint.h>

#include <string>

#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "content/public/browser/web_contents_observer.h"
#include "url/gurl.h"

Expand Down Expand Up @@ -62,7 +66,7 @@ class IconHelper : public content::WebContentsObserver {

Listener* listener_;

typedef uint32 MissingFaviconURLHash;
typedef uint32_t MissingFaviconURLHash;
base::hash_set<MissingFaviconURLHash> missing_favicon_urls_;

DISALLOW_COPY_AND_ASSIGN(IconHelper);
Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/input_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_INPUT_STREAM_H_
#define ANDROID_WEBVIEW_BROWSER_INPUT_STREAM_H_

#include "base/basictypes.h"
#include <stdint.h>

namespace net {
class IOBuffer;
Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/net/aw_http_user_agent_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <string>

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "net/url_request/http_user_agent_settings.h"

namespace android_webview {
Expand Down
2 changes: 1 addition & 1 deletion android_webview/browser/net/aw_network_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_
#define ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_

#include "base/basictypes.h"
#include "base/macros.h"
#include "net/base/network_delegate_impl.h"

namespace net {
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/net/aw_request_interceptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_REQUEST_INTERCEPTOR_H_
#define ANDROID_WEBVIEW_BROWSER_NET_AW_REQUEST_INTERCEPTOR_H_

#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "net/url_request/url_request_interceptor.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_
#define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_member.h"
#include "content/public/browser/content_browser_client.h"
Expand Down
1 change: 1 addition & 0 deletions android_webview/browser/net/aw_url_request_job_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_
#define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_

#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "net/url_request/url_request_job_factory.h"

Expand Down
Loading

0 comments on commit de7d5c2

Please sign in to comment.