summaryrefslogtreecommitdiffstats
path: root/chrome_frame/np_utils.h
blob: 484497b7782135fb86b5abcecf636a6db4990bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_FRAME_NP_UTILS_H_
#define CHROME_FRAME_NP_UTILS_H_

#include <string>

#include "base/basictypes.h"
#include "chrome_frame/np_browser_functions.h"

namespace np_utils {

std::string GetLocation(NPP instance, NPObject* window);
bool GetCookiesUsingXPCOMCookieService(NPP instance, const std::string& url,
                                       std::string* cookie_string);
bool SetCookiesUsingXPCOMCookieService(NPP instance, const std::string& url,
                                       const std::string& cookie_string);
}  // namespace np_utils

#endif  // CHROME_FRAME_NP_UTILS_H_