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

Unified Diff: plugins/update/npapi/urlpropbag.cc

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.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
« no previous file with comments | « plugins/update/npapi/urlpropbag.h ('k') | plugins/update/npapi/variant_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugins/update/npapi/urlpropbag.cc
diff --git a/plugins/update/npapi/urlpropbag.cc b/plugins/update/npapi/urlpropbag.cc
deleted file mode 100644
index 940a9b4940fa4b25d40e95c55a2f08940f7b71ff..0000000000000000000000000000000000000000
--- a/plugins/update/npapi/urlpropbag.cc
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2010 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-#include "omaha/plugins/update/npapi/urlpropbag.h"
-
-#include "omaha/base/debug.h"
-#include "omaha/base/utils.h"
-#include "omaha/plugins/update/npapi/variant_utils.h"
-
-namespace omaha {
-
-typedef CComObject<UrlPropertyBag> CComUrlBag;
-typedef scoped_any<CComUrlBag*, close_release_com, null_t> scoped_bag;
-
-HRESULT UrlPropertyBag::Create(const TCHAR* url, IPropertyBag** pb) {
- ASSERT1(url);
- ASSERT1(pb);
-
- if (!url || !pb) {
- return E_INVALIDARG;
- }
-
- // Create the host and hand off the string to it.
- scoped_bag comobj;
- HRESULT hr = CComUrlBag::CreateInstance(address(comobj));
- if (FAILED(hr)) {
- return hr;
- }
- get(comobj)->AddRef();
-
- comobj->url_ = url;
-
- return comobj->QueryInterface(pb);
-}
-
-STDMETHODIMP UrlPropertyBag::Read(LPCOLESTR pszPropName, VARIANT* pVar,
- IErrorLog* pErrorLog) {
- UNREFERENCED_PARAMETER(pErrorLog);
-
- ASSERT1(pszPropName);
- ASSERT1(pVar);
- if (!pszPropName || !pVar) {
- return E_POINTER;
- }
-
- if (0 == _tcscmp(pszPropName, kUrlPropertyBag_Url)) {
- V_VT(pVar) = VT_BSTR;
- V_BSTR(pVar) = url_.AllocSysString();
- return S_OK;
- }
-
- return E_INVALIDARG;
-}
-
-STDMETHODIMP UrlPropertyBag::Write(LPCOLESTR pszPropName, VARIANT* pVar) {
- UNREFERENCED_PARAMETER(pszPropName);
- UNREFERENCED_PARAMETER(pVar);
- return E_FAIL;
-}
-
-UrlPropertyBag::UrlPropertyBag() {}
-
-} // namespace omaha
-
« no previous file with comments | « plugins/update/npapi/urlpropbag.h ('k') | plugins/update/npapi/variant_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698