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

Unified Diff: content/shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: content/shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp
diff --git a/content/shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp b/content/shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp
index 68f215c94ba402dc64180d7304c3cd37655954bf..336a370a7e96587845d5bc24cead5ad7597d125f 100644
--- a/content/shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp
+++ b/content/shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp
@@ -48,18 +48,20 @@ public:
}
private:
- virtual NPError NPP_New(NPMIMEType pluginType,
- uint16_t mode,
- int16_t argc,
- char* argn[],
- char* argv[],
- NPSavedData* saved) override {
+ NPError NPP_New(NPMIMEType pluginType,
+ uint16_t mode,
+ int16_t argc,
+ char* argn[],
+ char* argv[],
+ NPSavedData* saved) override {
NPN_GetURL(javaScriptURL, 0);
return NPERR_NO_ERROR;
}
- virtual NPError NPP_NewStream(NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype) override
- {
+ NPError NPP_NewStream(NPMIMEType type,
+ NPStream* stream,
+ NPBool seekable,
+ uint16_t* stype) override {
stream->pdata = this;
if (strcmp(stream->url, javaScriptURL))
@@ -72,8 +74,7 @@ private:
return NPERR_NO_ERROR;
}
- virtual NPError NPP_DestroyStream(NPStream* stream, NPReason reason) override
- {
+ NPError NPP_DestroyStream(NPStream* stream, NPReason reason) override {
if (stream->pdata != this)
m_didFail = true;
@@ -96,16 +97,17 @@ private:
return NPERR_NO_ERROR;
}
- virtual int32_t NPP_WriteReady(NPStream* stream) override
- {
+ int32_t NPP_WriteReady(NPStream* stream) override {
if (stream->pdata != this)
m_didFail = true;
return 2;
}
- virtual int32_t NPP_Write(NPStream* stream, int32_t offset, int32_t len, void* buffer) override
- {
+ int32_t NPP_Write(NPStream* stream,
+ int32_t offset,
+ int32_t len,
+ void* buffer) override {
if (stream->pdata != this)
m_didFail = true;

Powered by Google App Engine
This is Rietveld 408576698