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

Unified Diff: media/blink/test_response_generator.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/blink/test_response_generator.h
diff --git a/media/blink/test_response_generator.h b/media/blink/test_response_generator.h
index e5a1161d975f800e6a697c60791dc7458eb6e057..1a8b16e1ab550091974f27d7f9f160f1cc7cecfd 100644
--- a/media/blink/test_response_generator.h
+++ b/media/blink/test_response_generator.h
@@ -5,7 +5,6 @@
#ifndef MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_
#define MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_
-#include "base/basictypes.h"
#include "third_party/WebKit/public/platform/WebURLError.h"
#include "third_party/WebKit/public/platform/WebURLResponse.h"
#include "url/gurl.h"
@@ -25,7 +24,7 @@ class TestResponseGenerator {
// Build an HTTP response generator for the given URL. |content_length| is
// used to generate Content-Length and Content-Range headers.
- TestResponseGenerator(const GURL& gurl, int64 content_length);
+ TestResponseGenerator(const GURL& gurl, int64_t content_length);
// Generates a WebURLError object.
blink::WebURLError GenerateError();
@@ -35,23 +34,23 @@ class TestResponseGenerator {
// Generates a regular HTTP 206 response starting from |first_byte_offset|
// until the end of the resource.
- blink::WebURLResponse Generate206(int64 first_byte_offset);
+ blink::WebURLResponse Generate206(int64_t first_byte_offset);
// Generates a custom HTTP 206 response starting from |first_byte_offset|
// until the end of the resource. You can tweak what gets included in the
// headers via |flags|.
- blink::WebURLResponse Generate206(int64 first_byte_offset, Flags flags);
+ blink::WebURLResponse Generate206(int64_t first_byte_offset, Flags flags);
// Generates a regular HTTP 206 response starting from |first_byte_offset|
// until |last_byte_offset|.
- blink::WebURLResponse GeneratePartial206(int64 first_byte_offset,
- int64 last_byte_offset);
+ blink::WebURLResponse GeneratePartial206(int64_t first_byte_offset,
+ int64_t last_byte_offset);
// Generates a custom HTTP 206 response starting from |first_byte_offset|
// until |last_byte_offset|. You can tweak what gets included in the
// headers via |flags|.
- blink::WebURLResponse GeneratePartial206(int64 first_byte_offset,
- int64 last_byte_offset,
+ blink::WebURLResponse GeneratePartial206(int64_t first_byte_offset,
+ int64_t last_byte_offset,
Flags flags);
// Generates a regular HTTP 404 response.
@@ -62,13 +61,13 @@ class TestResponseGenerator {
//
// If |first_byte_offset| is negative a response containing no content length
// will be returned.
- blink::WebURLResponse GenerateFileResponse(int64 first_byte_offset);
+ blink::WebURLResponse GenerateFileResponse(int64_t first_byte_offset);
- int64 content_length() { return content_length_; }
+ int64_t content_length() { return content_length_; }
private:
GURL gurl_;
- int64 content_length_;
+ int64_t content_length_;
DISALLOW_COPY_AND_ASSIGN(TestResponseGenerator);
};

Powered by Google App Engine
This is Rietveld 408576698