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

Side by Side Diff: content/shell/tools/plugin/PluginTest.h

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/shell/tools/plugin/PluginTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /* 5 /*
6 * Copyright (C) 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2010 Apple Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual int32_t NPP_Write(NPStream*, 91 virtual int32_t NPP_Write(NPStream*,
92 int32_t offset, 92 int32_t offset,
93 int32_t len, 93 int32_t len,
94 void* buffer); 94 void* buffer);
95 virtual int16_t NPP_HandleEvent(void* event); 95 virtual int16_t NPP_HandleEvent(void* event);
96 virtual bool NPP_URLNotify(const char* url, NPReason, void* notifyData); 96 virtual bool NPP_URLNotify(const char* url, NPReason, void* notifyData);
97 virtual NPError NPP_GetValue(NPPVariable, void* value); 97 virtual NPError NPP_GetValue(NPPVariable, void* value);
98 virtual NPError NPP_SetValue(NPNVariable, void* value); 98 virtual NPError NPP_SetValue(NPNVariable, void* value);
99 99
100 // NPN functions. 100 // NPN functions.
101 NPError NPN_GetURL(const char* url, const char* target);
102 NPError NPN_GetURLNotify(const char* url,
103 const char* target,
104 void* notifyData);
105 NPError NPN_GetValue(NPNVariable, void* value); 101 NPError NPN_GetValue(NPNVariable, void* value);
106 void NPN_InvalidateRect(NPRect* invalidRect); 102 void NPN_InvalidateRect(NPRect* invalidRect);
107 bool NPN_Invoke(NPObject*, 103 bool NPN_Invoke(NPObject*,
108 NPIdentifier methodName, 104 NPIdentifier methodName,
109 const NPVariant* args, 105 const NPVariant* args,
110 uint32_t argCount, 106 uint32_t argCount,
111 NPVariant* result); 107 NPVariant* result);
112 void* NPN_MemAlloc(uint32_t size); 108 void* NPN_MemAlloc(uint32_t size);
113 109
114 // NPRuntime NPN functions. 110 // NPRuntime NPN functions.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 typedef PluginTest* (*CreateTestFunction)(NPP, const std::string&); 291 typedef PluginTest* (*CreateTestFunction)(NPP, const std::string&);
296 292
297 static void registerCreateTestFunction(const std::string&, 293 static void registerCreateTestFunction(const std::string&,
298 CreateTestFunction); 294 CreateTestFunction);
299 static std::map<std::string, CreateTestFunction>& createTestFunctions(); 295 static std::map<std::string, CreateTestFunction>& createTestFunctions();
300 296
301 std::string m_identifier; 297 std::string m_identifier;
302 }; 298 };
303 299
304 #endif // PluginTest_h 300 #endif // PluginTest_h
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/shell/tools/plugin/PluginTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698