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

Unified Diff: extensions/browser/api/web_request/form_data_parser.h

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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: extensions/browser/api/web_request/form_data_parser.h
diff --git a/extensions/browser/api/web_request/form_data_parser.h b/extensions/browser/api/web_request/form_data_parser.h
index 0c49caa0138db7e78d61bc09f08de0e2e2aae058..7487a2439d5f6987a752fd5d574772ffe9ba0b00 100644
--- a/extensions/browser/api/web_request/form_data_parser.h
+++ b/extensions/browser/api/web_request/form_data_parser.h
@@ -5,10 +5,10 @@
#ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_FORM_DATA_PARSER_H_
#define EXTENSIONS_BROWSER_API_WEB_REQUEST_FORM_DATA_PARSER_H_
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
// Cannot forward declare StringPiece because it is a typedef.
#include "base/strings/string_piece.h"
@@ -44,12 +44,12 @@ class FormDataParser {
// Creates a correct parser instance based on the |request|. Returns NULL
// on failure.
- static scoped_ptr<FormDataParser> Create(const net::URLRequest& request);
+ static std::unique_ptr<FormDataParser> Create(const net::URLRequest& request);
// Creates a correct parser instance based on |content_type_header|, the
// "Content-Type" request header value. If |content_type_header| is NULL, it
// defaults to "application/x-www-form-urlencoded". Returns NULL on failure.
- static scoped_ptr<FormDataParser> CreateFromContentTypeHeader(
+ static std::unique_ptr<FormDataParser> CreateFromContentTypeHeader(
const std::string* content_type_header);
// Returns true if there was some data, it was well formed and all was read.
« no previous file with comments | « extensions/browser/api/vpn_provider/vpn_service.cc ('k') | extensions/browser/api/web_request/form_data_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698